Package Data | |
---|---|
Maintainer Username: | TZK- |
Package Create Date: | 2016-07-09 |
Package Last Update: | 2018-08-26 |
Home Page: | https://github.com/TZK-/TaigaPHP |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-22 03:03:30 |
Package Statistics | |
---|---|
Total Downloads: | 725 |
Monthly Downloads: | 2 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 4 |
Total Open Issues: | 0 |
TaigaLaravel is a package used to handle the TaigaPHP library with Laravel 5.x (Laravel 4 is not supported).
Require this package with composer:
composer install tzk/taiga-laravel
NB. You can skip adding the service provider & the facade if you use the Package Auto-discovery (>=Laravel 5.5).
After updating composer, add the TaigaServiceProvider to the providers array in the config/app.php file:
TZK\TaigaLaravel\TaigaServiceProvider::class,
If you want to use the facade you can also add this to your facades array in config/app.php:
'Taiga' => TZK\TaigaLaravel\Facades\Taiga::class,
You can publish configuration file if you want to provide extra HTTP header configurations:
php artisan vendor:publish --provider="TZK\TaigaLaravel\TaigaServiceProvider"
Note: It is not necessary if you only want basic configuration, since
api
,token
andlanguage
can be set using your .env file by adding the following keys.
TAIGA_API=https://api.taiga.io/api/v1/
TAIGA_TOKEN=null
TAIGA_LANGUAGE=en
You can get a new Taiga thanks to the facade:
$taiga = Taiga::newInstance();
$issues = $taiga->issues()->getList(['project' => $projectId]);
// or
// If you do not use Taiga::newInstance(), it will create automatically a new one
// each time you call a method via the facade.
$issues = Taiga::issues()->getList(['project' => $projectId]);
Or get an instance from the IoC container
$taiga = app(\TZK\Taiga\Taiga::class)...
There is more information about the package in the TaigaPHP repository.