PHPackages                             oca/x2restclient - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. oca/x2restclient

ActiveLibrary[HTTP &amp; Networking](/categories/http)

oca/x2restclient
================

A rest client for x2engine crm.

34541PHP

Since Oct 20Pushed 7y ago3 watchersCompare

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

READMEChangelogDependenciesVersions (11)Used By (0)

 X2 Rest Client
===============

[](#-x2-rest-client)

Add the following lines to your composer file:

```
    {
      "minimum-stability": "dev",
      "prefer-stable": true,
      "require": {
        "guzzlehttp/guzzle": "~6.0",
        "oca/x2restclient": "dev-master"
      }
    }

```

Make sure you run composer install. Watch out for update, as it will update all other composer stuff also.

Here is a basic example of how to create a contact:

```

```

`$mapper` for createContact() and updateContact() looks like `mywebfield => x2fieldname` (key is MY fieldname, value is x2's fieldname like so:

```
    $mapper = [
        'First_Name' => 'firstName',
        'Last_Name' => 'lastName',
        'Primary_Email' => 'email',
    ];

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d7d893af4508716ce8804560a48e28bb5ba1837e779d5a8a24760e3a62bff955?d=identicon)[that0n3guy](/maintainers/that0n3guy)

---

Top Contributors

[![that0n3guy](https://avatars.githubusercontent.com/u/113870?v=4)](https://github.com/that0n3guy "that0n3guy (24 commits)")[![Lickwid](https://avatars.githubusercontent.com/u/5322164?v=4)](https://github.com/Lickwid "Lickwid (9 commits)")

### Embed Badge

![Health badge](/badges/oca-x2restclient/health.svg)

```
[![Health](https://phpackages.com/badges/oca-x2restclient/health.svg)](https://phpackages.com/packages/oca-x2restclient)
```

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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