irfan / careem-rides-analysis
Analyzes your careem rides dataset
v1.0.0
2018-10-22 06:35 UTC
Requires
- guzzlehttp/guzzle: ^6.3
- league/csv: ^9.1
This package is auto-updated.
Last update: 2024-11-23 09:57:44 UTC
README
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.
How To Get Data Dump
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
Using CareemAnalyzer
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.
Dependencies
- PHP 7.1+
- Guzzle (needed by the library)
- League/CSV (needed by example.php ONLY to parse Captain (Driver) data)
Disclaimer
- 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