PHP code example of tavux / qonto-laravel

1. Go to this page and download the library: Download tavux/qonto-laravel 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/ */

    

tavux / qonto-laravel example snippets


   /**
    * @method static \Tavux\Qonto\Models\Attachment getAttachment(string $id)
    * @method static \Tavux\Qonto\Models\Organization getOrganization(string $id)
    * @method static \Tavux\Qonto\Models\Labels listLabels(int $current_page=null, int $per_page=null)
    * @method static \Tavux\Qonto\Models\Memberships listMemberships(int $current_page=null, int $per_page=null)
    * @method static \Tavux\Qonto\Models\Transactions listTransactions($slug, string $iban=null, string $status=null, string $updated_at_from=null, string $updated_at_to=null, string $settled_at_from=null, string $settled_at_to=null, string $sort_by=null, int $current_page=null, int $per_page=null)
    * @method static void setCredentials($login, $secret_key)
    */


try {
    $organization = Qonto::getOrganization('company_id');
    $transactions = Qonto::listTransactions($organization->bank_accounts[0]->slug);
    $labels = Qonto::listLabels();
    $memberships = Qonto::listMemberships();

    var_dump($organization, $transactions, $labels, $memberships);
} catch (\GuzzleHttp\Exception\GuzzleException $e) {
    echo $e->getMessage();
}