PHP code example of semaio / php-trello-api

1. Go to this page and download the library: Download semaio/php-trello-api 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/ */

    

semaio / php-trello-api example snippets

bash
$ composer 

namespace MyProject;
use Semaio\TrelloApi;

lder();
$client         = $client_builder->build( $trello_api_key, $trello_api_token ); // Change $trello_api_key and $trello_api_token
$card = array(
    'name'   => 'Card subject',
    'desc'   => 'Card content',
    'pos'    => '1',
    'idList' => $list_id, // Set a list ID
    'labels' => array( $label ),
);
$client->getCardApi()->create( $card );