PHPackages                             gbro115/gloriafood-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. gbro115/gloriafood-php

ActiveProject[API Development](/categories/api)

gbro115/gloriafood-php
======================

PHP client for the GloriaFood API

2.0.6(5y ago)474MITPHPPHP ^7.3

Since Jan 19Pushed 5y ago2 watchersCompare

[ Source](https://github.com/gbro115/gloriafood-php)[ Packagist](https://packagist.org/packages/gbro115/gloriafood-php)[ RSS](/packages/gbro115-gloriafood-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (4)Versions (12)Used By (0)

GloriaFood PHP API
==================

[](#gloriafood-php-api)

Composer ready PHP wrapper for the [GloriaFood API](https://github.com/GlobalFood/integration_docs).

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

[](#installation)

The recommended way to install the library is using [Composer](https://getcomposer.org).

1. Add this json to your composer.json file:

```
{
    "require": {
        "gbro115/gloriafood-php": ""
    }
}
```

2. Next, run this from the command line:

```
composer install

```

3. Finally, add this line to your php file that will be using the SDK:

```
require 'vendor/autoload.php';

```

Functionality offered by this package
-------------------------------------

[](#functionality-offered-by-this-package)

- Retrieve a menu from the GloriaFood Fetch Menu API
- Parse the JSON body of an Accepted Orders payload into an object

Handling Exceptions
-------------------

[](#handling-exceptions)

If the API returns an error or an unexpected response, the PHP API will throw a \\GloriaFood\\Exception.

Example usage
-------------

[](#example-usage)

```
