PHPackages                             valentinmari/glovo-api-php - 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. valentinmari/glovo-api-php

ActiveLibrary[API Development](/categories/api)

valentinmari/glovo-api-php
==========================

Glovo Business API

0.0.1(7y ago)233.6k6[1 issues](https://github.com/vmari/glovo-api-php/issues)MITPHPPHP &gt;=5.4.0

Since Feb 22Pushed 7y ago3 watchersCompare

[ Source](https://github.com/vmari/glovo-api-php)[ Packagist](https://packagist.org/packages/valentinmari/glovo-api-php)[ Docs](https://business.glovoapp.com/)[ RSS](/packages/valentinmari-glovo-api-php/feed)WikiDiscussions master Synced 3d ago

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

Glovo PHP Business API
======================

[](#glovo-php-business-api)

Create, retrieve and track your Glovo orders trough their Business API.

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

[](#requirements)

PHP 5.4.0 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
$ composer require valentinmari/glovo-api-php
```

To use the Glovo API in your project, use Composer's [autoload](https://getcomposer.org/doc/01-basic-usage.md#autoloading):

```
require_once('vendor/autoload.php');
```

Dependencies
------------

[](#dependencies)

The bindings require the following extensions in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php), although you can use your own non-cURL client if you prefer
- [`json`](https://secure.php.net/manual/en/book.json.php)
- [`mbstring`](https://secure.php.net/manual/en/book.mbstring.php) (Multibyte String)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Create an account in Glovo (it can be created from the App). This api **needs a credit card associated to your account**. You can add one from your app and it will be used automatically for any order. In order to get your API credentials you should login in the desired environment and go to *Credentials* section on your profile.

- [B2B Production](https://business.glovoapp.com/dashboard/profile)
- [B2B Sandbox/Test](https://business.testglovo.com/dashboard/profile)

Example ApiKey &amp; ApiSecret:

```
$apiKey = '125238463972712';
$apiSecret = '081f8c9680d457a088b4413a62ddf84c';
```

Simple usage looks like:

```
