PHPackages                             ubereats/php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. ubereats/php-sdk

ActiveLibrary[API Development](/categories/api)

ubereats/php-sdk
================

PHP SDK for UberEats API

1.0.0(1y ago)3141MITPHPPHP ^7.4 || ^8.0CI passing

Since Feb 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/BenMacha/ubereat-php)[ Packagist](https://packagist.org/packages/ubereats/php-sdk)[ RSS](/packages/ubereats-php-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (9)Versions (2)Used By (0)

UberEats PHP SDK
================

[](#ubereats-php-sdk)

[![Latest Version on Packagist](https://camo.githubusercontent.com/62c516f7014dbd34be72947dabd3d13f96295cc421e77c378fc33ac225bc0914/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f75626572656174732f7068702d73646b2e737667)](https://packagist.org/packages/ubereats/php-sdk)[![Total Downloads](https://camo.githubusercontent.com/b452dad0e379e7ba1dddc048c8701ba5911639ae7a9464ad91b97430fd0d2376/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f75626572656174732f7068702d73646b2e737667)](https://packagist.org/packages/ubereats/php-sdk)[![License](https://camo.githubusercontent.com/c24a63887ca3211c23fa37efbefb3287603e3c96db6f5e2d9583f6c50b54cd00/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f42656e4d616368612f756265726561742d7068702e737667)](LICENSE)[![CI](https://github.com/BenMacha/ubereat-php/actions/workflows/ci.yml/badge.svg)](https://github.com/BenMacha/ubereat-php/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/8ea0f2abc2b5a52ad5e8c73228421ad0cb2837fd5a505caae5788eed1c9c01d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f75626572656174732f7068702d73646b2e737667)](composer.json)[![Build Status](https://camo.githubusercontent.com/9bb0839bf49cecdc18140e5ca43720a078ee99e42c6f3c3f35836f8df1053178/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f42656e4d616368612f756265726561742d7068702f63692e796d6c3f6272616e63683d6d61696e)](https://github.com/BenMacha/ubereat-php/actions)[![Code Coverage](https://camo.githubusercontent.com/0376768c0638a465028334064aa8e4b8dd0fc2cf425728e8170181e5a551ec2d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f42656e4d616368612f756265726561742d706870)](https://codecov.io/gh/BenMacha/ubereat-php)[![PHPStan](https://camo.githubusercontent.com/745eb989b9e4903dc598fe2cc63ed4226198be55b7c729001cbd1ece7676fef6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d6d61782d627269676874677265656e2e737667)](https://github.com/phpstan/phpstan)[![PHP CS Fixer](https://camo.githubusercontent.com/38e614aea1a6f3fc8b28e94381eea217ddf872d67b03f03ad512ecdda6ff04f2/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230435325323046697865722d5053522d2d31322d627269676874677265656e2e737667)](https://github.com/PHP-CS-Fixer/PHP-CS-Fixer)[![Support Palestine](https://camo.githubusercontent.com/b18b30503d09a12f6186d0f73a1967faac6ec91f183910423b79fa56ed34913b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253837254235254630253946253837254238253230537570706f72742d50616c657374696e652d3030383030303f7374796c653d666c6174266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c2e2e2e)](https://camo.githubusercontent.com/b18b30503d09a12f6186d0f73a1967faac6ec91f183910423b79fa56ed34913b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253837254235254630253946253837254238253230537570706f72742d50616c657374696e652d3030383030303f7374796c653d666c6174266c6f676f3d646174613a696d6167652f7376672b786d6c3b6261736536342c2e2e2e)

A modern PHP SDK for the UberEats API, supporting PHP 7.4 and above.

Features
--------

[](#features)

- 🚀 Modern PHP 7.4+ with strict typing
- 🔒 Type-safe request/response objects
- 🧪 Comprehensive test coverage
- 📝 Detailed documentation
- 🔄 Webhook support
- 🛠️ PSR-3 logging support
- 🎯 PSR-12 coding standards
- 🔍 Static analysis with PHPStan level max

Requirements
------------

[](#requirements)

- PHP 7.4 or higher
- Composer
- Guzzle HTTP Client
- PSR-3 Logger (optional)

Documentation
-------------

[](#documentation)

- [Getting Started](docs/getting-started.md)
- [Working with Orders](docs/orders.md)
- [Working with Stores](docs/stores.md)
- [Working with Deliveries](docs/deliveries.md)
- [Integration Features](docs/integration.md)

Installation
------------

[](#installation)

```
composer require ubereats/php-sdk
```

Basic Usage
-----------

[](#basic-usage)

```
use UberEats\Client\UberEatsClient;

// Create client instance
$client = new UberEatsClient();

// Authenticate
$token = $client->authenticate(
    clientId: 'your-client-id',
    clientSecret: 'your-client-secret'
);

// Get order details
$order = $client->getOrder('order-id');

// Get store details
$store = $client->getStore('store-id');
```

Available Methods
-----------------

[](#available-methods)

### Authentication

[](#authentication)

- `authenticate(string $clientId, string $clientSecret): AccessToken`

### Orders

[](#orders)

- `getOrder(string $orderId): Order`
- `acceptOrder(string $orderId, AcceptOrderRequest $request): Order`
- `denyOrder(string $orderId, DenyOrderRequest $request): Order`
- `cancelOrder(string $orderId, CancelOrderRequest $request): Order`

### Stores

[](#stores)

- `getStore(string $storeId): Store`
- `getStores(): StoreCollection`

Webhook Handling
----------------

[](#webhook-handling)

```
use UberEats\Webhook\WebhookHandler;

$handler = new WebhookHandler();
$event = $handler->handle($payload);

switch ($event->type) {
    case 'orders.notification':
        handleOrderNotification($event);
        break;
    case 'orders.scheduled.notification':
        handleScheduledOrder($event);
        break;
    case 'delivery.state_changed':
        handleDeliveryStateChange($event);
        break;
    default:
        throw new \InvalidArgumentException('Unknown event type');
}
```

Error Handling
--------------

[](#error-handling)

The SDK throws `UberEatsException` for any API errors. Each exception includes:

- HTTP status code
- Error message
- Original response data

```
try {
    $order = $client->getOrder('invalid-id');
} catch (UberEatsException $e) {
    echo $e->getMessage();
    echo $e->getCode();
}
```

Development
-----------

[](#development)

### Testing

[](#testing)

```
composer test
```

### Static Analysis

[](#static-analysis)

```
composer phpstan
```

### Code Style

[](#code-style)

```
composer cs-fix
```

### Code Coverage

[](#code-coverage)

```
composer test-coverage
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create a feature branch
3. Commit your changes
4. Push to the branch
5. Create a Pull Request

Changelog
---------

[](#changelog)

Please see [CHANGELOG.md](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [BEN MECHA Ali](https://github.com/benmacha)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance43

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

470d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d129db1925fcb94a290ff38ccd08cd4cb14074d013b94a23b01f0f506a47709?d=identicon)[BenMacha](/maintainers/BenMacha)

---

Top Contributors

[![BenMacha](https://avatars.githubusercontent.com/u/5999976?v=4)](https://github.com/BenMacha "BenMacha (13 commits)")

---

Tags

phpsdksdk-phpsymfonyuberubereats

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ubereats-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/ubereats-php-sdk/health.svg)](https://phpackages.com/packages/ubereats-php-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19562.3M1.3k](/packages/drupal-core)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
