PHP code example of conorsmith / dublinbikes

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

    

conorsmith / dublinbikes example snippets


$client = new ConorSmith\Dublinbikes\Dublinbikes("your-api-key");

$allStations = $client->getStations();
$statuses = $client->getCurrentStatuses();

$dameStreet = $client->getStationStatus(10);