tzk/taiga-laravel

A Laravel package for the TaigaPHP library
726 1
Install
composer require tzk/taiga-laravel
Latest Version:v2.1.0
PHP:~5.5|~7.0
License:MIT
Last Updated:Aug 26, 2018
Links: GitHub  ·  Packagist
Maintainer: TZK-

Taiga Laravel

TaigaLaravel is a package used to handle the TaigaPHP library with Laravel 5.x (Laravel 4 is not supported).

Installation

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 and language 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

Usage

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)...

Documentation

There is more information about the package in the TaigaPHP repository.

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

21,859,365 1,981
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,401,765 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,177,464 2,587
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,566,573 271

Version History

Version Released PHP Laravel License
v2.1.0 ~5.5|~7.0 ~5.1 MIT
v2.0.1 ~5.5|~7.0 ~5.1 MIT
v2.0.0 ~5.5|~7.0 ~5.1 MIT
v1.1.1 ~5.5|~7.0 ~5.1 MIT
v1.1.0 ~5.5|~7.0 ~5.1 MIT