uncgits/google-api-wrapper-laravel
Composer 安装命令:
composer require uncgits/google-api-wrapper-laravel
包简介
Laravel Wrapper for Google API PHP Library
README 文档
README
Google API Library (PHP) for use at UNCG
Google API Library - Laravel Wrapper
Contact: its-laravel-devs-l@uncg.edu
Introduction
This package is a Laravel wrapper for the UNCG Google API PHP Library package, so that the Google API PHP Library can be used in Laravel apps.
This is a work in progress. Not recommend for production apps just yet.
Installation
composer require 'uncgits/google-api-wrapper-laravel'- IF running Laravel 5.4 or below: Add
Uncgits\GoogleApiLaravel\ServiceProvider::class,to yourconfig/app.phpfile - Run
php artisan vendor:publish --provider='Uncgits\GoogleApiLaravel\ServiceProvider'- to publish thegoogle-api.phpconfig file - Set your environment credentials in your
.envfile, and set your configuration options inconfig/google-api.php
GOOGLE_APPLICATION_CREDENTIALS= relative path to your google credentials .json
GOOGLE_DOMAIN = the domain
GOOGLE_ADMIN_ACCOUNT = account with admin rights
GOOGLE_CUSTOMER_ID = the customer ID string for your account (required for some but not all calls)
Dependencies
This package has dependencies on uncgits/google-api-php-library and barryvdh/laravel-debugbar (dev)
Usage
Basic Usage / Getting Started
In your code, assuming you've set your information/credentials properly in your .env file, you should be able to instantiate the Uncgits\GoogleApiLaravel\GoogleApi class, and then use any of its available methods (inherited from uncgits/google-api-php-libary) to make an API call.
As of version 0.3, no flash messaging package is included. You are free to install your own - recommend
laracasts/flashor something that implements a similar API.
Version History
0.18
- improvements to
listGroupMembers()method so that it will handle pagination through group membership if necessary
0.17
- Get Email
0.16.1
- Remove deprecated (and unintentional) usage of required parameters following optional ones in several methods. This mostly affects default 'me' values for several methods, which would not have been usable anyway, so it should not be backward breaking.
0.16
- Support for creating User Aliases
0.15
- Add support for push notification channels
0.14.1
- Add support for parameters in
listOrgUnitscall
0.14
- Features related to Org Units
- Features for updating POP/IMAP settings
- Fixes for not returning to super-admin subject after impersonating a user
- GZIP for results by default; add option in
.envto turn this off
0.13
- Features related to email configuration
0.12
- Implement listing user email filters
0.11
- Implement list / delete forwarding address operations
0.10
- Implement batched API calls per https://developers.google.com/admin-sdk/directory/v1/guides/batch?hl=en:
- Insert Group Members
- Delete Group Members
0.9.2
- Fix for mis-labeled tokens method
0.9.1
- API Caching capability across all get/list requests
0.9
- API Cache, at a basic level.
0.8
- Trying unlimited pagination on
listGroups()again.
0.7.1
- Adds option for email type, default
text/html
0.7
- Email sending, using the
sendEmail()method
0.6.2
- PSR-4 fixes
0.6.1
- standardize conversion of null value to empty string from getNextPageToken()
0.6
- Fixes / changes
listGroups()method to consolidate params and options together for correct functionality
0.5.1
- Fixes config keys for HTTP proxy
NOTE: if upgrading, make sure you add the new config keys into your
google-api.phpconfig file, and set them in your.envfile if using a proxy.
0.5
- Changes to manually setting Google Credentials using
setAuthConfig(), as theuseApplicationDefaultCredentials()method was relying ongetenv()under the hood... which does not play nicely withphp artisan route:cache.
NOTE: if upgrading, make sure you add the new config key into your
google-api.phpconfig file
0.4
- Change how we handle pagination for
listUsers()since we can't get past memory limit issues...now returning one page plus the next page token.
0.3
- Removes
standaniels/flashas a dependency. Optional to install a flash package.
0.2
- adds pagination to
listGroupMembers(),listUsers(),listGroups(), andlistActivities()methods. - updates to formatting for PSR2
0.1.1
- Began working on code with Kevin. More to come soon.
0.1
- Initial release
uncgits/google-api-wrapper-laravel 适用场景与选型建议
uncgits/google-api-wrapper-laravel 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 44 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 05 月 24 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「api」 「google」 「laravel」 「uncg」 「uncgits」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 uncgits/google-api-wrapper-laravel 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 uncgits/google-api-wrapper-laravel 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 uncgits/google-api-wrapper-laravel 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A PSR-7 compatible library for making CRUD API endpoints
Magento 2 Social Login extension is designed for quick login to your Magento 2 store without procesing complex register steps
Client for Google Directions API to add interpolated points to a route consisting of given coordinates.
Alfabank REST API integration
Google Recaptcha Package For PHP front and backend.
Zero-dependency raw PHP DNS resolver, domain-ownership verification, and intoDNS/MxToolbox-style diagnostics. Queries authoritative nameservers directly over sockets — never trusts the recursive cache for ownership checks.
统计信息
- 总下载量: 44
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-05-24