PHP code example of fleetbase / fleetbase-php

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

    

fleetbase / fleetbase-php example snippets


$fleetbase = new \Fleetbase\Sdk\Fleetbase('< api key here >');

$spaceNeedle = $fleetbase->places->create([
    'name' => 'Space Needle',
    'street1' => '400 Broad Street',
    'city' => 'Seattle',
    'state' => 'WA',
    'country' => 'US'
]);
bash
composer