Laravel 5.7 integration for Drip PHP package
The package requires PHP 7.1.3+ and follows the FIG standards PSR-1, PSR-2 and PSR-4 to ensure a high level of interoperability between shared PHP.
Bug reports, feature requests, and pull requests can be submitted by following our Contribution Guide.
Documentation for Drip PHP package can be found here.
$ composer require glorand/laravel-drip
{
"require": {
"glorand/laravel-drip": "^1.0"
}
}
After installing the package, open your Laravel config file located at config/app.php
and add the following lines.
In the $providers array add the following service provider for this package.
\Glorand\Drip\Laravel\DripServiceProvider::class,
In the $aliases array add the following facade for this package.
'Drip' => Glorand\Drip\Laravel\DripFacade::class,
Update your .env file
DRIP_ACCOUNT_ID=your-account_id
DRIP_API_KEY=your-api-key
DRIP_USER_AGENT=custom-agent
For usage, please refer to the Drip PHP package documentation, located here.
Use namespace Glorand\Drip\Laravel\DripContract
in your controller or service constructor
Just use the Laravel facade alias Drip::
instead of the native call $drip->
.
Just use the helper function drip()
instead of the native call $drip->
.
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see LICENSE for more information.