PHPackages                             impeto/mogreet-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. impeto/mogreet-php

ActiveLibrary[API Development](/categories/api)

impeto/mogreet-php
==================

Mogreet PHP Library

v2.0.0(9y ago)024MITPHPPHP &gt;=5.5

Since Apr 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/impeto/mogreet-php)[ Packagist](https://packagist.org/packages/impeto/mogreet-php)[ Docs](https://github.com/impeto/mogreet-php)[ RSS](/packages/impeto-mogreet-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (3)Used By (0)

Disclaimer
==========

[](#disclaimer)

This is a **drastically** modified version of the official Mogreet PHP repo, which you can find [here](https://github.com/jperichon/mogreet-php). Please use that one if you are running PHP &lt; 5.5 or if you, for some reason, do not use `namespace`s in your app.

---

Introduction
------------

[](#introduction)

This is a PHP wrapper for the Mogreet API.

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

[](#installation)

The installation is done via Composer:

```
     composer require impeto/mogreet-php
```

Or by cloning this repo:

```
git clone https://github.com/impeto/mogreet-php.git

```

Usage examples
--------------

[](#usage-examples)

### Create a client

[](#create-a-client)

There are two ways to create a client. One is by providing the Mogreet `clientId` and `token` to the `Mogreet\Client` class' constructor, like this:

```
