LasseRafn / laravel-pipedrive by lasserafn

1,557
2
3
Package Data
Maintainer Username: lasserafn
Maintainer Contact: lasserafn@gmail.com (Lasse Rafn)
Package Create Date: 2016-11-17
Package Last Update: 2019-08-22
Language: PHP
License: MIT
Last Refreshed: 2024-04-29 15:04:38
Package Statistics
Total Downloads: 1,557
Monthly Downloads: 1
Daily Downloads: 0
Total Stars: 2
Total Watchers: 3
Total Forks: 8
Total Open Issues: 0

Laravel Pipedrive API wrapper

Installation

  1. Require using composer
composer require lasserafn/laravel-pipedrive
  1. (For laravel 5.4 and below) Add the PipedriveServiceProvider to your config/app.php providers array.
'providers' => [
    \LasseRafn\Pipedrive\PipedriveServiceProvider::class,
]
  1. 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

Contributors