dev-master
9999999-devTaiga PHP SDK Symfony integration
MIT
The Requires
- php ^5.5.9
- symfony/framework-bundle ^2.7
- taiga/php-sdk ^0.1
by Leny Bernard
rest symfony sdk taiga
Taiga PHP SDK Symfony integration
TaigaBundle helps to use the Taiga PHP SDK to work with Taiga REST API., (*2)
A composer.json file is available in the repository and it has been referenced on packagist., (*3)
Step 1 - Require it with Composer, (*4)
php composer.phar require troopers/taiga-bundle:^0.1 --update-with-dependencies
Step 2 - Declare the bundle in your AppKernel.php
, (*5)
new TaigaBundle\TaigaBundle(),
To authenticate requests, the taiga php-sdk expect a token. Follow these instructions to generate your token., (*6)
Then declare the config like below:, (*7)
taiga: api_token: %taiga_api_token%
$taiga = $this->container->get('taiga.api');
$projects = $taiga->projects->getList([ 'member' => $taiga->users->getMe()->id ]);
$sprints[$project->name] = $taiga->milestones->getList( ['project' => $project->id] );
$userStories = $taiga->userStories->getList( ['milestone' => $sprint->id] );
foreach ($projects as $project) { $project->stats = $taiga->projects->getProjectIssueStats($project->id); }
TaigaBundle and taiga/php-sdk are distributed under MIT license, see LICENSE file., (*8)
Report bugs or suggest features using issue tracker at GitHub., (*9)
Taiga PHP SDK Symfony integration
MIT
rest symfony sdk taiga