PHPackages                             webchimp/chapi - 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. webchimp/chapi

ActiveProject[API Development](/categories/api)

webchimp/chapi
==============

CHIMP API

1.0.2.7(2y ago)1137MITPHP

Since May 31Pushed 2y ago2 watchersCompare

[ Source](https://github.com/TheWebChimp/CHAPI-framework)[ Packagist](https://packagist.org/packages/webchimp/chapi)[ RSS](/packages/webchimp-chapi/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (12)Used By (0)

CHAPI
=====

[](#chapi)

Why
---

[](#why)

CHAPI stands for CHIMP API Powerful Integration (clever right?).

CHAPI is our take on how to manage an easy to use but still powerful API framework.

The objectives for CHAPI are:

- Elegant and simple for the programmer
- Flexible (CHAPI comes with a lot of automagic but its optional)
- Composer Compliant

Structure
---------

[](#structure)

CHAPI is aimed specifically to generate API's. This being said, the structure was created with RESTful implementations in mind. The main parts of CHAPI are the following:

### Request Object

[](#request-object)

The request object lets you play with the request information made to the API. It comes with:

- Wrapper functions to manipulate `GET`, `POST` or `PUT` request information
- Wrapper functions to use `$_SESSION` or `$_FILES`
- Wrapper functions to manipulate Cookies and Server information
- Tools to get Authorization Headers and bearers

[Request Documentation](docs/request.md)

### Response Object

[](#response-object)

The Response Object is a tool designed to facilitate the way the endpoint responds. It contains special functions to:

- Set the response status
- Set the response body
- Set any header
- Redirect to special locations
- Respond json in an easy way

[Response Documentation](docs/response.md)

### Router

[](#router)

CHAPI's Router is a very powerful tool. It comes with an engine that lets you add and resolve routes in a straight-forward way.

Main advantages of CHAPI's Router are:

- Easy create `GET`, `POST`, `PUT` and `DELETE` routes
- Named params
- Optional params
- Regex supported

[Router Documentation](docs/router.md)

### Endpoint Class

[](#endpoint-class)

The endpoint class uses all the power from Request, Response and Router. It creates a base to create endpoints without too much code. Out of the box, it comes with a specific set of automagic routes that define the basis for simple endpoints needed for CrUD operations and let you extend this however you want.

[Endpoint Documentation](docs/endpoint.md)

### App Wrapper

[](#app-wrapper)

Everything in CHAPI is wrapped, at the end, in an `APP` object that lets you access everything it has through one point.

[APP Documentation](docs/router.md)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Recently: every ~64 days

Total

10

Last Release

1075d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4c69c46973be3ca9447c4d2a6b3ac4d424ef91870aaf94f07372e3984f9ed9b4?d=identicon)[thewebchimp](/maintainers/thewebchimp)

---

Top Contributors

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

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/webchimp-chapi/health.svg)

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

###  Alternatives

[google/apiclient

Client library for Google APIs

9.8k191.4M997](/packages/google-apiclient)[docusign/esign-client

The Docusign PHP library makes integrating Docusign into your apps and websites a super fast and painless process. The library is open sourced on GitHub, look for the docusign-esign-php-client repository. Join the eSign revolution!

2087.4M13](/packages/docusign-esign-client)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[messagebird/php-rest-api

MessageBird REST API client for PHP

1589.4M22](/packages/messagebird-php-rest-api)[get-stream/stream

A PHP client for Stream (https://getstream.io)

1451.3M8](/packages/get-stream-stream)[plivo/plivo-php

A PHP SDK to make voice calls &amp; send SMS using Plivo and to generate Plivo XML

1102.8M18](/packages/plivo-plivo-php)

PHPackages © 2026

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