PHP code example of irfan / careem-rides-analysis

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

    

irfan / careem-rides-analysis example snippets


$careem = new \Careem\RideAnalysis();
$careem->load([
    'path/to/getAllAccessibleCompletedTrips.json', // 0-100 rides JSON data
    'path/to/getAllAccessibleCompletedTrips (1).json', // 101-200 rides JSON data
]);

$rides = $careem->parse();