PHP code example of josrom / laravel-trello-wrapper
1. Go to this page and download the library: Download josrom/laravel-trello-wrapper 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/ */
josrom / laravel-trello-wrapper example snippets
$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::getChecklistApi()->items()->create($checklist->getId(), 'Example checklist item');
// Attach an image using a url
Trello::getCardApi()->attachments()->create($card->getId(), ['url' => 'http://lorempixel.com/400/200/']);
sh
php artisan vendor:publish --provider="LaravelTrello\TrelloServiceProvider"
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.