PHP code example of filippo-toso / alleantia-sdk

1. Go to this page and download the library: Download filippo-toso/alleantia-sdk 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/ */

    

filippo-toso / alleantia-sdk example snippets


use FilippoToso\Alleantia\Alleantia;
use FilippoToso\Alleantia\Options;


    'username' => 'admin',
    'password' => 'secret',
]);

$alleantia = new Alleantia($options);

$response = $alleantia->system()->info();

print_r($response->body());

return [
    
    // ...
    
    'alleantia' => [
        'base_url' => env('ALLEANTIA_BASE_URL'),
        'username' => env('ALLEANTIA_USERNAME'),
        'password' => env('ALLEANTIA_PASSWORD'),
    ],   
];

use FilippoToso\Alleantia\Laravel\Alleantia;

$response = Alleantia::system()->info();

dump($response->body());

composer