This library is a Proof Of Concept. It objectifies the data dump of your Rides from Careem's user Dashboard into PHP and allows you to use it for analysis.
Note: You need to be logged in to the dashboard.
- Login to Careem's User Dashboard
- Go to
https://app.careem.com/getAllAccessibleCompletedTrips.json?start=0&limit=100
- Play with
start
andlimit
. It sometimes only works with 100 rides request at a time. - Download it, change
start
offset and repeat
composer require irfan/careem-rides-analysis
$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();
Run & check out example.php for an in-depth use.
- PHP 7.1+
- Guzzle (needed by the library)
- League/CSV (needed by example.php ONLY to parse Captain (Driver) data)
- This project is only a fun Proof of Concept for analysing Ride data
- This is not affiliated with Careem
- I am not responsible for how you do use this library