PHPackages                             loduis/alegra-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. loduis/alegra-php

ActiveLibrary[API Development](/categories/api)

loduis/alegra-php
=================

Alegra PHP Library

v0.25.1(8y ago)255MITPHP &gt;=5.6.11

Since Jun 7Compare

[ Source](https://github.com/loduis/alegra-php)[ Packagist](https://packagist.org/packages/loduis/alegra-php)[ Docs](http://developer.alegra.com)[ RSS](/packages/loduis-alegra-php/feed)WikiDiscussions Synced yesterday

READMEChangelogDependencies (9)Versions (32)Used By (0)

Alegra PHP bindings
===================

[](#alegra-php-bindings)

You can sign up for a Alegra account at .

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

[](#requirements)

PHP 5.6.11 and later.

Composer
--------

[](#composer)

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

```
composer require "loduis/alegra-php:@dev"
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

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

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

[](#dependencies)

The bindings require the following extension 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)

Any resource containts five main methods (**all**, **get**, **create**, **save**, **delete**)

Simple usage looks like:

Your composer.json file

```
{
    "minimum-stability": "dev",
    "prefer-stable": true,
    "require": {
        "loduis/alegra-php": "1.0.*"
    }
}
```

Your test.php script

```
