PHP code example of pgrenaud / laravel-trello
1. Go to this page and download the library: Download pgrenaud/laravel-trello 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/ */
pgrenaud / laravel-trello example snippets
'providers' => [
...
Gregoriohc\LaravelTrello\TrelloServiceProvider::class,
],
'aliases' => [
...
'Trello' => Gregoriohc\LaravelTrello\Facades\Wrapper::class,
],
$card = Trello::manager()->getCard();
$card
->setBoardId(Trello::getDefaultBoardId())
->setListId(Trello::getDefaultListId())
->setName('Example card')
->setDescription('Description of the card')
->save();
// Create the card
$card = Trello::manager()->getCard();
$card
->setBoardId(Trello::getDefaultBoardId())
->setListId(Trello::getDefaultListId())
->setName('Example card')
->setDescription('Description of the card')
->save();
// Add a checklist with one item
$checklist = Trello::manager()->getChecklist();
$checklist
->setCard($card)
->setName('Example list')
->save();
Trello::checklist()->items()->create($checklist->getId(), 'Example checklist item');
// Attach an image using a url
Trello::card()->attachments()->create($card->getId(), ['url' => 'http://lorempixel.com/400/200/']);
sh
php artisan vendor:publish --provider="Gregoriohc\LaravelTrello\TrelloServiceProvider"