PHPackages                             jeroendesloovere/fork-cms-php-api - 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. jeroendesloovere/fork-cms-php-api

ActiveLibrary[API Development](/categories/api)

jeroendesloovere/fork-cms-php-api
=================================

This Fork CMS PHP class can communicate with a Fork CMS websites API.

1.0.2(11y ago)211MITPHPPHP &gt;=5.3.0

Since Jan 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jeroendesloovere/fork-cms-php-api)[ Packagist](https://packagist.org/packages/jeroendesloovere/fork-cms-php-api)[ Docs](https://github.com/jeroendesloovere/fork-cms-php-api)[ RSS](/packages/jeroendesloovere-fork-cms-php-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (5)Used By (0)

Fork CMS PHP API class
======================

[](#fork-cms-php-api-class)

[![Latest Stable Version](https://camo.githubusercontent.com/b323cb50ce53fe64821db790c0e705fa95bcc732a8303a5a7023a727ec554c97/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666f726b636d732f6170692d777261707065722d636c6173732e737667)](https://packagist.org/packages/forkcms/api-wrapper-class)[![License](https://camo.githubusercontent.com/5a911ddcd16b9110e7821386ffd8d637005a8b856c14a3c0861b955e91da4eba/687474703a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d6c69676874677265792e737667)](https://github.com/forkcms/api-wrapper-class/blob/master/LICENSE)[![Build Status](https://camo.githubusercontent.com/5a9ff7d9281fba3649ceeb099934829a09f3405bfa4da6b79a06dc40e4809f0e/687474703a2f2f696d672e736869656c64732e696f2f7472617669732f666f726b636d732f6170692d777261707065722d636c6173732e737667)](https://travis-ci.org/forkcms/api-wrapper-class)

This Fork CMS PHP class can communicate with the API from a Fork CMS website.

Usage
-----

[](#usage)

### Installation

[](#installation)

```
{
    "require": {
        "forkcms/api-wrapper-class": "1.0.*"
    }
}
```

> Adding this code in your `composer.json` file will get the [latest fork-cms-php-api Packagist package](https://packagist.org/packages/forkcms/api-wrapper-class) using [Composer](https://getcomposer.org).

### Example

[](#example)

```
use ForkCms\Api\ForkCms;
```

**Function calls which do not require authentication**

```
$api = new ForkCms(
    $url,
    $email
);

$response = $api->coreGetAPIKey($email, $password);

$apiKey = $response['api_key'];
```

**Function calls which require authentication**

```
$api = new ForkCms(
    $url,
    $email,
    $apiKey
);

$response = $api->coreAppleAddDevice(APPLE_DEVICE_TOKEN);
$response = $api->coreAppleRemoveDevice(APPLE_DEVICE_TOKEN);
$response = $api->blogCommentsGet();
// ...
```

> [View all examples](/examples/example.php) or check [the Fork CMS API Wrapper Class](/src/).

### Tests

[](#tests)

```
phpunit
```

Documentation
-------------

[](#documentation)

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.

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

[](#contributing)

Contributions are **welcome** and will be fully **credited**.

### Pull Requests

[](#pull-requests)

> To add or update code

- **Coding Syntax** - Please keep the code syntax consistent with the rest of the package.
- **Add unit tests!** - Your patch won't be accepted if it doesn't have tests.
- **Document any change in behavior** - Make sure the README and any other relevant documentation are kept up-to-date.
- **Consider our release cycle** - We try to follow [semver](http://semver.org/). Randomly breaking public APIs is not an option.
- **Create topic branches** - Don't ask us to pull from your master branch.
- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests.
- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting.

### Issues

[](#issues)

> For bug reporting or code discussions.

More info on how to work with GitHub on help.github.com.

Credits
-------

[](#credits)

- [Tijs Verkoyen](https://github.com/tijsverkoyen)
- [Jeroen Desloovere](https://github.com/jeroendesloovere)
- [All Contributors](https://github.com/forkcms/api-wrapper-class/contributors)

License
-------

[](#license)

The module is licensed under [MIT](./LICENSE.md). In short, this license allows you to do everything as long as the copyright statement stays present.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 63% 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 ~298 days

Total

3

Last Release

4262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/588616?v=4)[Jeroen Desloovere](/maintainers/jeroendesloovere)[@jeroendesloovere](https://github.com/jeroendesloovere)

---

Top Contributors

[![jeroendesloovere](https://avatars.githubusercontent.com/u/588616?v=4)](https://github.com/jeroendesloovere "jeroendesloovere (17 commits)")[![tijsverkoyen](https://avatars.githubusercontent.com/u/250042?v=4)](https://github.com/tijsverkoyen "tijsverkoyen (10 commits)")

---

Tags

phpapicmsFork CMS

### Embed Badge

![Health badge](/badges/jeroendesloovere-fork-cms-php-api/health.svg)

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

###  Alternatives

[jstolpe/instagram-graph-api-php-sdk

Instagram Graph API PHP SDK

13998.4k2](/packages/jstolpe-instagram-graph-api-php-sdk)

PHPackages © 2026

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