PHP code example of pioniro / seranking-api-php

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

    

pioniro / seranking-api-php example snippets


$config = [
    'token' => YOUR_API_TOKEN,
    'http_client' => <Optional \Psr\Http\Client\ClientInterface implementation>,
    'http_request_factory' => <Optional \Http\Message\RequestFactory implementation>,
    'logger' => <Optional \Psr\Log\LoggerInterface implementation>
];
$client = new \Pioniro\Seranking\Client($config);
$service = new \Pioniro\Seranking\Service\PositionService($client);


composer