PHP code example of lasserafn / laravel-pipedrive

1. Go to this page and download the library: Download lasserafn/laravel-pipedrive library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lasserafn / laravel-pipedrive example snippets

`config/app.php
 php
'providers' => [
    \LasseRafn\Pipedrive\PipedriveServiceProvider::class,
]
 bash
php artisan vendor:publish --provider "LasseRafn\Pipedrive\PipedriveServiceProvider"
 php
$pipedrive = new \LasseRafn\Pipedrive\Pipedrive($APIKEY); // or set the api key in the config/pipedrive.php file.
 php
$pipedrive->persons()->all(); // Returns a collection of Person models.
 php
$pipedrive->persons()->find(1); // Returns a Person model.
 php
$pipedrive->activities()->all(null, [ [ 'done' => 0 ] ]);