https://github.com/f3ath/simpleuber
Simple UBER API client for PHP
https://github.com/f3ath/simpleuber
Last synced: 11 months ago
JSON representation
Simple UBER API client for PHP
- Host: GitHub
- URL: https://github.com/f3ath/simpleuber
- Owner: f3ath
- License: mit
- Created: 2016-02-04T05:45:17.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-02-04T08:53:36.000Z (almost 10 years ago)
- Last Synced: 2025-01-01T19:28:01.530Z (about 1 year ago)
- Language: PHP
- Homepage: https://packagist.org/packages/f3ath/simpleuber
- Size: 6.84 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simpe UBER
[](https://packagist.org/packages/f3ath/simpleuber)
[](https://packagist.org/packages/f3ath/simpleuber)
[](https://travis-ci.org/f3ath/simpleuber)
[](https://insight.sensiolabs.com/projects/42c88a31-5ab6-43e7-aff4-95b44e1ada01)
Simple UBER API client for PHP
This implementation is for Products, Price Estimates, and Time Estimates [API endpoints](https://developer.uber.com/docs/api-overview).
It only requires the server_token, no OAth involved.
##Install
Via [composer](https://getcomposer.org):
`$ composer require "f3ath/simpleuber"`
##Usage
```php
getProducts(37.773972, -122.431297));
var_dump($uber->getPriceEstimates(37.773972, -122.431297, 37.333333, -121.9));
var_dump($uber->getTimeEstimates(37.773972, -122.431297));
} catch (\F3\SimpleUber\ApiException $e) {
var_dump($e->getErrorMessage());
var_dump($e->getErrorCode());
}
```