PHPackages                             myerp/myerp-php-api-client - 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. myerp/myerp-php-api-client

ActiveLibrary

myerp/myerp-php-api-client
==========================

A PHP client library for myERP's REST API

v1.0.2(11y ago)1111MITPHPPHP &gt;=5.4CI failing

Since Mar 5Pushed 11y ago4 watchersCompare

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

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

myERP API
=========

[](#myerp-api)

[![Build Status](https://camo.githubusercontent.com/4f843f2a7a9ce7381db5161d7b3ee120c708cc2534836857b80872305fcbd095/68747470733a2f2f7472617669732d63692e6f72672f6d794552502f6d796572702d7068702d6170692d636c69656e742e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/myERP/myerp-php-api-client)

A PHP client library for [myERP's API](http://developers.myerp.com).

Installation Using [Composer](http://getcomposer.org/)
------------------------------------------------------

[](#installation-using-composer)

Assuming composer.phar is located in your project's root directory, run the following command:

```
php composer.phar require myerp/myerp-php-api-client:~1.0.2
```

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

[](#getting-started)

This wrapper uses [Guzzle](https://github.com/guzzle/guzzle) to communicate with the REST web service.

- 1 - Retrieve your API\_KEY and your API\_EMAIL from the API settings. More information [here](http://developers.myerp.com/docs/1.0/overview/security_authentication.html).
- 2 - Initiate the client by:

```
use MyERP\MyERP;
$myERP = new MyERP('API_EMAIL', 'API_KEY');
```

- 3 - Now you're ready to make authorized API requests to your domain!

```
// Get all the customers and leads
$customers = $myERP->customers()->findAll();
var_dump($customers);

// Get a specific customer/lead
$customer = $myERP->customers()->find(261367);
echo $customer['full_name'] . ' [id=#' . $customer['id'] . ']' . "\n";

// create a customer
$jane = [
    "type" => 2, //individual
    "status" => 1, //customer
    "first_name" => "Jane",
    "last_name" => "Doe",
    "email" => "jane.doe@mail.com"
];
$jane = $myERP->customers()->save($jane);
echo $jane['full_name'] . ' created [id=#' . $jane['id'] . ', email=' . $jane['email'] . ']' . "\n";

// update some fields
$jane['email'] = 'newemail@mail.com';
$jane = $myERP->customers()->save($jane);
echo $jane['full_name'] . ' updated [id=#' . $jane['id'] . ', email=' . $jane['email'] . ']' . "\n";

// delete a customer
$byeJane = $myERP->customers()->delete(261368);
echo $byeJane['full_name'] . ' deleted [id=#' . $byeJane['id'] . ', email=' . $byeJane['email'] . ']' . "\n";

// catching errors
try {
  $response = $myERP->customers()->find(2613670);
  //....
} catch(APIException $e) {
  echo $e->getCode() . ' ' . $e->getMessage();
}
```

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

[](#contributing)

Thanks for considering contributing to this project.

### Finding something to do

[](#finding-something-to-do)

Ask, or pick an issue and comment on it announcing your desire to work on it. Ideally wait until we assign it to you to minimize work duplication.

### Reporting an issue

[](#reporting-an-issue)

- Search existing issues before raising a new one.
- Include as much detail as possible.

### Pull requests

[](#pull-requests)

- Make it clear in the issue tracker what you are working on, so that someone else doesn't duplicate the work.
- Use a feature branch, not master.
- Rebase your feature branch onto origin/master before raising the PR.
- Keep up to date with changes in master so your PR is easy to merge.
- Be descriptive in your PR message: what is it for, why is it needed, etc.
- Make sure the tests pass
- Squash related commits as much as possible.

### Coding style

[](#coding-style)

- Try to match the existing indent style.
- Don't abuse the pre-processor.
- Don't mix platform-specific stuff into the main code.

License
-------

[](#license)

The myERP API wrapper is released under the [MIT License](http://www.opensource.org/licenses/MIT).

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~87 days

Total

3

Last Release

4272d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9c51dd4e6f0a6753063e510ca1b171540bf2a1710d7f4aa45937aeef49af0654?d=identicon)[dbaq](/maintainers/dbaq)

---

Top Contributors

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

---

Tags

myERP

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/myerp-myerp-php-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/myerp-myerp-php-api-client/health.svg)](https://phpackages.com/packages/myerp-myerp-php-api-client)
```

###  Alternatives

[coincheck/coincheck

Bindings of coincheck API

202.2k](/packages/coincheck-coincheck)

PHPackages © 2026

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