PHP code example of acaronlex / trello-php
1. Go to this page and download the library: Download acaronlex/trello-php 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/ */
acaronlex / trello-php example snippets
composer
php artisan vendor:publish --provider="Acaronlex\TrelloPhp\TrelloServiceProvider"
use Acaronlex\TrelloPhp\Services\BoardService;
use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
class TrelloTestController extends Controller
{
protected $boardService;
public function __construct(BoardService $boardService)
{
$this->boardService = $boardService;
}
public function index(){
$boards = $this->boardService->getAllBoards();
return $boards;
}
}