PHPackages                             czahoo/api-framework - 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. [Framework](/categories/framework)
4. /
5. czahoo/api-framework

ActiveLibrary[Framework](/categories/framework)

czahoo/api-framework
====================

Basic light weight framework for external or internal APIs

v1.1.12(9y ago)0197MITPHPPHP &gt;=5.4.0

Since Aug 5Pushed 9y ago2 watchersCompare

[ Source](https://github.com/Czahoo/api-framework)[ Packagist](https://packagist.org/packages/czahoo/api-framework)[ Docs](https://github.com/Czahoo/api-framework)[ RSS](/packages/czahoo-api-framework/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (1)Versions (39)Used By (0)

Framework for API
=================

[](#framework-for-api)

After installing module using composer, you need to follow steps below:

1. Add content of src/.htaccess to your .htaccess file or just copy it to your root directory if u don't have one
2. Create basic folder for your API (by default it should be named 'Api')
3. Create application folder inside your Api (by default it should be named 'App')
4. Create Routing.php file where you put your routing config with basic structure as defined below:
5. Implement 'show' method in your basic controller which will be called by default if no other method is passed
6. Create index.php file with code as presented below
7. To call default method in your basic controller type yoursitename.com/api/ (for external api) or yoursitename.com/internal\_api/ (for internal api)
8. To call method 'test' in your custom controller for internal api type yoursitename.com/api/custom\_route/test

File: index.php

```
// Register vendor autoloader
require_once '../vendor/autoload.php';

// Start application
session_start();
Framework::detectContext($_GET['API_TYPE']);
Framework::translateUrl($_GET['URL']);
Framework::run();
```

File: Routing.php

```
$FRAMEWORK_ROUTING = array(
    Framework::API_TYPE_EXTERNAL => array(
        Framework::DEFAULT_CONTROLLER_ROUTE_NAME => 'Api\App\Basic\Controller\BasicControllerName',
        'custom_route' => 'Api\App\Path\To\Your\Controller',
    ),
    Framework::API_TYPE_INTERNAL => array(
        Framework::DEFAULT_CONTROLLER_ROUTE_NAME => 'Api\App\Basic\Controller\BasicControllerName',
    ),
);
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 71.4% 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 ~19 days

Recently: every ~148 days

Total

37

Last Release

3298d ago

Major Versions

v0.1.0-alpha → v1.0-beta2015-08-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/01f812c9662ca5933b1446879a8a0af6333d000df88324e3275b1b166a06ba65?d=identicon)[Czahoo](/maintainers/Czahoo)

---

Top Contributors

[![kleskowy](https://avatars.githubusercontent.com/u/15785759?v=4)](https://github.com/kleskowy "kleskowy (5 commits)")[![kkalkhoff](https://avatars.githubusercontent.com/u/4247299?v=4)](https://github.com/kkalkhoff "kkalkhoff (2 commits)")

---

Tags

apiframeworklightczahoo

### Embed Badge

![Health badge](/badges/czahoo-api-framework/health.svg)

```
[![Health](https://phpackages.com/badges/czahoo-api-framework/health.svg)](https://phpackages.com/packages/czahoo-api-framework)
```

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

43.2k341.0k1](/packages/ccxt-ccxt)[lanin/laravel-api-debugger

Easily debug your JSON API.

2371.8M1](/packages/lanin-laravel-api-debugger)[gotzmann/comet

Modern PHP framework for building blazing fast REST APIs and microservices

68516.3k1](/packages/gotzmann-comet)[psx/psx

PHP REST API Framework

17112.6k3](/packages/psx-psx)[kornrunner/ccxt

A PHP cryptocurrency trading library with support for more than 90 bitcoin/altcoin exchanges

371.6k](/packages/kornrunner-ccxt)

PHPackages © 2026

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