PHP code example of ggdx / laravel-insightly

1. Go to this page and download the library: Download ggdx/laravel-insightly 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/ */

    

ggdx / laravel-insightly example snippets


'providers' => [
    GGDX\LaravelInsightly\InsightlyServiceProvider::class,
]

'aliases' => [
    'Insightly' => GGDX\LaravelInsightly\InsightlyFacade::class,
]

php artisan vendor:publish

use Insightly;

Insightly::getContacts();

use Insightly;

private $insightly;

public function __construct(Insightly $insightly)
{
    $this->insightly = $insightly;
}

$this->insightly->getContacts();