PHP code example of vdhicts / svm-api-client

1. Go to this page and download the library: Download vdhicts/svm-api-client 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/ */

    

vdhicts / svm-api-client example snippets


use Vdhicts\SVM\SVMConnector;

$connector = new SVMConnector('API_KEY');

$teams = $connector
    ->teams()
    ->list();

return [
    'api_key' => env('SVM_API_KEY'),
];

$this->app->singleton(SVMConnector::class, fn () => new SVMConnector(config('svm.api_key')));