djaxho/laravel-infusionsoft-oauth2
Composer 安装命令:
composer require djaxho/laravel-infusionsoft-oauth2
包简介
Laravel package to facilitate the use of the Infusionsoft API using OAUTH2
README 文档
README
Laravel package to facilitate the use of the Infusionsoft API using OAUTH2. This packages is quite specific to laravel
Install
Via Composer
$ composer require djaxho/laravel-infusionsoft-oauth2
Installation
(These instructions are for an 'alerady set-up' laravel project with a functioning database set up) Add the service provider for laravel by adding the following line to your 'providers' array in the file congig/app.php
Djaxho\LaravelInfusionsoftOauth2\LaravelInfusionsoftOauth2ServiceProvider::class,
Publish the package files to your project by running:
$ php artisan vendor:publish
Add the following variable to your .env file or u them in your pdate config/laravel-infusionsoft-oauth2.php file with values obtained from your infusionsoft developer account and for ISDK_API_REDIRECT use the uri you are serving your site from (i.e. www.yoursite.dev)
ISDK_API_HOST ISDK_API_CLIENTID ISDK_API_CLIENTSECRET ISDK_API_REDIRECT
Run your database migrations (first make sure you have your database info in your .env file or config files so you can successfully connect to the database of your choosing):
$ php artisan migrate
You may now navigate to your.url/authorize-infusionsoft-api (whichever url you used for ISDK_API_REDIRECT) and click 'authorize.' You will then be taken to infusionsoft to authorize your api connection. At the end of this process you will be led back to the your.url/authorize-infusionsoft-api page with a success message and the oauth2 key stored in your database
Usage
To start using the infusionsoft api after going through the steps above, add this to the top of your php file:
use Djaxho\LaravelInfusionsoftOauth2\Infusionsoft;
And in the methods of your classes (or in the constructor method) you can leverage laravel's automatic dependency injection to instantiate the infusionsoft api singleton. As an example of something you could do to test your api connection in a controller class:
protected $infusionsoft; public function __construct(Infusionsoft $infusionsoft) { $this->infusionsoft = $infusionsoft; var_dump($this->infusionsoft->hasToken()); }
Then you can use the infusionsoft api documentation to make api calls. As a simple example, you would use it liek this:
$updateField = $this->infusionsoft->data()->update('Contact', $contactId, $updateData);
Change log
Please see CHANGELOG for more information on what has changed recently.
Security
If you discover any security related issues, please email djaxho@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
djaxho/laravel-infusionsoft-oauth2 适用场景与选型建议
djaxho/laravel-infusionsoft-oauth2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 423 次下载、GitHub Stars 达 2, 最近一次更新时间为 2017 年 07 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「oauth2」 「laravel」 「infusionsoft」 「djaxho」 「laravel-infusionsoft-oauth2」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 djaxho/laravel-infusionsoft-oauth2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 djaxho/laravel-infusionsoft-oauth2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 djaxho/laravel-infusionsoft-oauth2 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This package provides port of the Infusionsoft SDK utilizing Laravel fascades.
The unofficial Infusionsoft API PHP SDK
A lightweight and powerful OAuth 2.0 authorization and resource server library with support for all the core specification grants. This library will allow you to secure your API with OAuth and allow your applications users to approve apps that want to access their data from your API.
Laravel Package for accessing the Keap REST API (v1/v2)
Email Toolkit Plugin for CakePHP
Infusionsoft OAuth 2 Client Provider for The PHP League OAuth2-Client package
统计信息
- 总下载量: 423
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-05