Download the PHP package thiagolovatine/uber-php without Composer

On this page you can find all versions of the php package thiagolovatine/uber-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package uber-php

Uber PHP Client

Latest Version Build Status Coverage Status Quality Score Total Downloads

A PHP client for authenticating with Uber using OAuth 2.0 and consuming the API.

This package is intended to be used for communicating with the Uber API after you've secured an access token from your users. To authenticate users and retrieve access tokens, use stevenmaguire/oauth2-uber.

Install

Via Composer

Note that the required version of PHP is 5.5. If you want use library with PHP 5.4 you should use 1.2.0 version.

Usage

Create client

Please review the Sandbox documentation on how to develop and test against these endpoints without making real-world Requests and being charged.

Get Products

By location:

https://developer.uber.com/docs/riders/references/api/v1.2/products-get

By Id:

https://developer.uber.com/docs/riders/references/api/v1.2/products-product_id-get

Get Price Estimates

https://developer.uber.com/docs/riders/references/api/v1.2/estimates-price-get

Get Time Estimates

https://developer.uber.com/docs/riders/references/api/v1.2/estimates-time-get

Get Promotions

https://developer.uber.com/docs/riders/ride-promotions/introduction

Get User Activity

This feature is only available since version 1.1.

https://developer.uber.com/docs/riders/references/api/v1.2/history-get

Get User Profile

https://developer.uber.com/docs/riders/references/api/v1.2/me-get

Update User Profile

https://developer.uber.com/docs/riders/references/api/v1.2/me-patch

Get Payment Methods

https://developer.uber.com/docs/riders/references/api/v1.2/payment-methods-get

Get Place

https://developer.uber.com/docs/riders/references/api/v1.2/places-place_id-get

Update a Place

https://developer.uber.com/docs/riders/references/api/v1.2/places-place_id-put

Request A Ride

Upfront Fares

Upfront fares means the total fare is known before the ride is taken.

  1. In the products endpoint GET /products, products will have the upfront_fare_enabled field set to true.
  2. Use the ride request estimate endpoint POST /requests/estimate with the product_id to get a fare_id. The fare_id can be used to lock down an upfront fare and arrival time for a trip. The fare_id expires after two minutes. If the fare_id is expired or not valid, we return a 422 error.
  3. Request the ride using the ride request endpoint POST /requests with the fare_id returned in the previous step.

https://developer.uber.com/docs/riders/ride-requests/tutorials/api/best-practices#upfront-fares

Surge Confirmation Flow

If the ride request is using a product that has a surge multiplier, the API wrapper will throw an Exception and provide a response body that includes a surge confirmation ID.

https://developer.uber.com/docs/riders/ride-requests/tutorials/api/best-practices#handling-surge-pricing

Get Current Ride Details

https://developer.uber.com/docs/riders/references/api/v1.2/requests-current-get

Get Ride Details

https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-get

Update Current Ride Details

https://developer.uber.com/docs/riders/references/api/v1.2/requests-current-patch

Update Ride Details

https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-patch

Get Ride Estimate

https://developer.uber.com/docs/riders/references/api/v1.2/requests-estimate-post

Get Ride Map

https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-map-get

Get Ride Receipt

https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-receipt-get

Cancel Current Ride

https://developer.uber.com/docs/riders/references/api/v1.2/requests-current-delete

Cancel Ride

https://developer.uber.com/docs/riders/references/api/v1.2/requests-request_id-delete

Create Reminder

https://developer.uber.com/docs/riders/references/api/v1.2/reminders-post

Get Reminder

https://developer.uber.com/docs/riders/references/api/v1.2/reminders-reminder_id-get

Update Reminder

https://developer.uber.com/docs/riders/references/api/v1.2/reminders-reminder_id-patch

Cancel Reminder

https://developer.uber.com/docs/riders/references/api/v1.2/reminders-reminder_id-delete

Get Driver Profile

https://developer.uber.com/docs/drivers/references/api/v1/partners-me-get

Get Driver Payments

https://developer.uber.com/docs/drivers/references/api/v1/partners-payments-get

Get Driver Trips

https://developer.uber.com/docs/drivers/references/api/v1/partners-trips-get

Rate Limiting

This feature is only supported for v1 version of the API.

Rate limiting is implemented on the basis of a specific client's secret token. By default, 1,000 requests per hour can be made per secret token.

When consuming the service with this package, your rate limit status will be made available within the client.

These values will update after each request. getRateLimit will return null after the client is created and before the first successful request.

https://developer.uber.com/v1/api-reference/#rate-limiting

Using the Sandbox

Modify the status of an ongoing sandbox Request.

These methods will throw Stevenmaguire\Uber\Exception when invoked while the client is not in sandbox mode. The underlying API endpoints have no effect unless you are using the sandbox environment.

https://developer.uber.com/v1/sandbox/#request

Simulate the possible responses the Request endpoint will return when requesting a particular product, such as surge pricing, against the Sandbox.

https://developer.uber.com/v1/sandbox/#product-types

Testing

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of uber-php with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
guzzlehttp/guzzle Version ~5.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package thiagolovatine/uber-php contains the following files

Loading the files please wait ....