An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Simpe UBER
[![Total Downloads](https://img.shields.io/packagist/dt/f3ath/simpleuber.svg)](https://packagist.org/packages/f3ath/simpleuber)
[![Latest Stable Version](https://img.shields.io/packagist/v/f3ath/simpleuber.svg)](https://packagist.org/packages/f3ath/simpleuber)
[![Travis Build](https://travis-ci.org/f3ath/simpleuber.svg?branch=master)](https://travis-ci.org/f3ath/simpleuber)
[![SensioLabsInsight](https://insight.sensiolabs.com/projects/42c88a31-5ab6-43e7-aff4-95b44e1ada01/mini.png)](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());
}

```