PHPackages                             bklein01/suitecrmclient - 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. bklein01/suitecrmclient

ActiveLibrary[API Development](/categories/api)

bklein01/suitecrmclient
=======================

This is a fork of a free client library for use with SuiteCRM to abstract the various API usage to enable easier integrations. Provided by PortoSpire

0.0.7(3y ago)06LGPL-3.0-or-laterPHPPHP 8.1.\*

Since Oct 15Pushed 3y agoCompare

[ Source](https://github.com/bklein01/suiteCRMClient)[ Packagist](https://packagist.org/packages/bklein01/suitecrmclient)[ Docs](https://portospire.github.io/suiteCRMClient/)[ Fund](https://www.paypal.me/portospire)[ GitHub Sponsors](https://github.com/PortoSpire)[ RSS](/packages/bklein01-suitecrmclient/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (9)Used By (0)

[![](https://camo.githubusercontent.com/9e81f4ea5a461aa8286d5e3938e7b47cdcf2a04b62c0b4994ac96bbf57ee7eb0/68747470733a2f2f6173736574732e706f72746f73706972652e636f6d2f6769746875622e696f2f737569746563726d636c69656e742e706e67)](https://camo.githubusercontent.com/9e81f4ea5a461aa8286d5e3938e7b47cdcf2a04b62c0b4994ac96bbf57ee7eb0/68747470733a2f2f6173736574732e706f72746f73706972652e636f6d2f6769746875622e696f2f737569746563726d636c69656e742e706e67)

[![](https://camo.githubusercontent.com/215fed00bbe99af9417b5ed2327526418f0aadff6decfcb77ba7e45bbe2f375b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506f72746f53706972652f737569746543524d436c69656e74)](https://camo.githubusercontent.com/215fed00bbe99af9417b5ed2327526418f0aadff6decfcb77ba7e45bbe2f375b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f506f72746f53706972652f737569746543524d436c69656e74) [![](https://camo.githubusercontent.com/58394c58e48f35ac5cf00e30db464988b40c6f6dca0ca7c263a5f9fe98899eb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f506f72746f53706972652f737569746543524d436c69656e74)](https://camo.githubusercontent.com/58394c58e48f35ac5cf00e30db464988b40c6f6dca0ca7c263a5f9fe98899eb0/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c616e6775616765732f636f64652d73697a652f506f72746f53706972652f737569746543524d436c69656e74) [![](https://camo.githubusercontent.com/18459595d10604fe36a83ccc03d154b7b2cb169e006ae04cf941704ae0d7c6f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f506f72746f53706972652f737569746543524d436c69656e74)](https://camo.githubusercontent.com/18459595d10604fe36a83ccc03d154b7b2cb169e006ae04cf941704ae0d7c6f6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f506f72746f53706972652f737569746543524d436c69656e74)

Client library for use with SuiteCRM
====================================

[](#client-library-for-use-with-suitecrm)

A free (LGPL3) client library for use with SuiteCRM to abstract various API usage to enable easier integrations. [![SuiteCRM](https://camo.githubusercontent.com/a1907f33fd036247266e60eb60b37f99e80ebaa765c53076bc7f5ec4bc98837f/68747470733a2f2f6173736574732e706f72746f73706972652e636f6d2f7073662f696d672f73756974655f69636f6e2e706e67)](https://suitecrm.com/)

[Provided by PortoSpire ![PortoSpire - be seen](https://camo.githubusercontent.com/5ac105132e3b72cffef6318e1454bb03a7f0dfdef7da26a48836471e9f3db9cb/68747470733a2f2f6173736574732e706f72746f73706972652e636f6d2f7073662f696d672f706f72746f73706972652532306865616465722e737667)](https://www.portospire.com/)

[Introduction](#introduction)[Setup](#setup)[Usage](#usage)

- [Mezzio](#mezzio)
- [Laminas MVC](#laminasmvc)
- [Standalone](#standalone)

[Introduction](#introduction)
-----------------------------

[](#introduction)

This package provides a SuiteCRM client to abstract API calls and form submissions to provide and receive data from SuiteCRM instances. It makes use of Person Form campaigns and both the V8 and rest APIs as needed.

[Setup](#setup)
---------------

[](#setup)

Add to your project's composer.json

> composer require portospire/suitecrmclient

[Usage](#usage)
---------------

[](#usage)

This package is built to support Laminas Mezzio and Laminas MVC as well as be available as a stand alone library.

An example to get a list of Web campaigns from a SuiteCRM instance:

> $SuiteCRMClient-&gt;setServerDomain($server\_domain); $SuiteCRMClient-&gt;setClientId($client\_id); $SuiteCRMClient-&gt;setClientSecret($client\_secret); $filter = new \\PortoSpire\\SuiteCRMClient\\Model\\Filter(\['campaign\_type' =&gt; 'Web'\]); $json = $SuiteCRMClient-&gt;getCampaigns(\[\], \['size' =&gt; 20, 'number' =&gt; 1\], 'name', $filter); // this will contain json of the results $campaignsFull = $SuiteCRMClient-&gt;convertJsonToGenerics($json); // this converts the json to PHP objects

An example to submit a lead into a web-to-lead form in a SuiteCRM instance: (You can extend the provided models (Model/WebToLead, etc) if you have custom fields)

> $values = (array) $WebToLead; // expects an array of key=&gt;value pairs where the keys match the different fields from the web-to-lead form $SuiteCRMClient-&gt;setServerDomain($server\_domain); $SuiteCRMClient-&gt;setClientId($client\_id); $SuiteCRMClient-&gt;setClientSecret($client\_secret); $SuiteCRMClient-&gt;submitWebToLead($values, $campaign\_id); // this must match the campaign id that the web-to-lead form is associated to in SuiteCRM

### [Mezzio](#mezzio)

[](#mezzio)

Add the ConfigProvider class to the config aggregator (typically found in config/config.php)

> $aggregator = new ConfigAggregator(\[ ... \\PortoSpire\\SuiteCRMClient\\ConfigProvider::class, ... Then use the client in your handlers/middleware as needed for your use cases.

### [Laminas MVC](#laminasmvc)

[](#laminas-mvc)

There should be no additional steps beyond adding to your project's composer.json required to begin using the library with Laminas MVC.

### [Standalone](#standalone)

[](#standalone)

There should be no additional steps beyond adding to your project's composer.json required to begin using the library.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

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 ~233 days

Recently: every ~350 days

Total

7

Last Release

1098d ago

PHP version history (2 changes)0.0.1PHP ^7.0

0.0.7PHP 8.1.\*

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/666336?v=4)[Ben Klein](/maintainers/bklein01)[@bklein01](https://github.com/bklein01)

---

Top Contributors

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

---

Tags

SuiteCRMportospireSuiteCRM api v8SuiteCRM rest apiSuiteCRM person formSuiteCRM web to lead form

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bklein01-suitecrmclient/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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