Package Data | |
---|---|
Maintainer Username: | Gingerdan |
Maintainer Contact: | hi@dwhite.me (Daniel White) |
Package Create Date: | 2016-07-02 |
Package Last Update: | 2017-05-19 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2025-01-04 03:03:40 |
Package Statistics | |
---|---|
Total Downloads: | 176 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 5 |
Total Watchers: | 1 |
Total Forks: | 3 |
Total Open Issues: | 1 |
composer require ggdx/laravel-insightly
Add the provider:
'providers' => [
GGDX\LaravelInsightly\InsightlyServiceProvider::class,
]
Add the facade:
'aliases' => [
'Insightly' => GGDX\LaravelInsightly\InsightlyFacade::class,
]
Generate the config file:
php artisan vendor:publish
If using version control, add INSIGHTLY_KEY=your_key
to the .env or add your key directly to config/insightly.php
use Insightly;
and then
Insightly::getContacts();
... or if you prefer dependency injection ...
use Insightly;
private $insightly;
public function __construct(Insightly $insightly)
{
$this->insightly = $insightly;
}
and then in some method
$this->insightly->getContacts();