lasserafn / laravel-pipedrive
0.95
2018-03-01 09:26 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ^6.2
- illuminate/support: 5.0.* || 5.1.* || 5.2.* || 5.3.* || 5.4.* || 5.5.* || 5.6.*
This package is auto-updated.
Last update: 2026-06-09 01:57:04 UTC
README
Installation
- Require using composer
composer require lasserafn/laravel-pipedrive
- (For laravel 5.4 and below) Add the PipedriveServiceProvider to your
config/app.phpproviders array.
'providers' => [ \LasseRafn\Pipedrive\PipedriveServiceProvider::class, ]
- Publish config file.
php artisan vendor:publish --provider "LasseRafn\Pipedrive\PipedriveServiceProvider"
Usage
Create Pipedrive Instance
$pipedrive = new \LasseRafn\Pipedrive\Pipedrive($APIKEY); // or set the api key in the config/pipedrive.php file.
To find your API key you must login to Pipedrive and navigate to Settings -> Personal -> Api (/settings#api)
Get all Persons
$pipedrive->persons()->all(); // Returns a collection of Person models.
Find Person by ID
$pipedrive->persons()->find(1); // Returns a Person model.
Get a list of Activities that are not done
Filters consist of an array of arrays. The first parameter is included fields, leave it at null to keep the default.
$pipedrive->activities()->all(null, [ [ 'done' => 0 ] ]);
(Later versions will switch to a single array key => value).
Supported endpoints
... Todo
Testing
... Todo