lettinghq / laravel-drip-php
为Drip的REST API v2.0提供的Laravel包装器
1.0.2
2017-03-21 12:55 UTC
Requires
- php: >=5.5.0
- laravel/framework: 5.2.*
This package is auto-updated.
Last update: 2024-09-14 19:25:52 UTC
README
Drip的PHP包装器对他们的REST API的Laravel包装器
安装
1) 将该软件包作为依赖项添加到您的composer.json中
composer require lettinghq/laravel-drip-php
2) 发布供应商配置文件
php artisan vendor:serve
3) 将您的Drip API令牌添加到位于app/config/drip.php的配置文件中。我们建议您将此密钥添加到项目.env文件中,而不是直接将其添加到配置文件中。
DRIP_API_TOKEN=your token here
4) 将以下行添加到您的config/app.php文件中的providers数组中
LettingHQ\DripPhp\DripPhpServiceProvider::class,
5) 将以下行添加到您的config/app.php文件中的aliases数组中
'DripPhp' => LettingHQ\DripPhp\DripPhp::class,