Download the PHP package morscate/uber-eats without Composer
On this page you can find all versions of the php package morscate/uber-eats. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download morscate/uber-eats
More information about morscate/uber-eats
Files in morscate/uber-eats
Package uber-eats
Short Description An PHP client to integrate with the Uber Eats API
License MIT
Informations about the package uber-eats
Implement the new Uber Eats Marketplace API
This package allows you to easily make requests to the new Uber Eats Marketplace API.
Requirements
- PHP >= 8.1
- Laravel >= 9.0
Installation
You can install the package via composer:
The package will automatically register itself.
Configuration
To start using the Uber Eats API you will need a client ID and client secret. You can get these by creating an app on the Uber Developer Portal. Add the Client ID and client secret to your .env file:
Making requests
Activate an integration
Before you can start using the API, you need to activate an store integration. To do so you need to make sure to have access to the eats.pos_provisioning
scope (https://developer.uber.com/docs/eats/references/api/v1/post-eats-stores-storeid-posdata). When you have access to this scope add it to the UBER_EATS_SCOPE
through the config or .env.
You can do this by using the following code:
Getting orders
To get all orders from a store, you can use the following code:
Create your own request
If you need to create your own request, you can use the following code:
Webhooks
To start receiving webhooks from Uber Eats, you need to add the following route the App\Providers\RouteServiceProvider
file:
Security Vulnerabilities
If you discover a security vulnerability within this project, please email me via [email protected].
All versions of uber-eats with dependencies
guzzlehttp/guzzle Version ^7.0.1
illuminate/http Version ^8.0|^9.0
illuminate/support Version ^8.0|^9.0