PHPackages                             zapheus/zapheus - 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. zapheus/zapheus

ActiveLibrary[Framework](/categories/framework)

zapheus/zapheus
===============

An independent and framework-friendly PHP micro-framework.

v0.1.0(8y ago)02.2k2MITPHPPHP &gt;=5.3.0CI failing

Since Apr 23Pushed 5y ago1 watchersCompare

[ Source](https://github.com/zapheus/zapheus)[ Packagist](https://packagist.org/packages/zapheus/zapheus)[ Docs](https://zapheus.github.io)[ RSS](/packages/zapheus-zapheus/feed)WikiDiscussions master Synced today

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

Zapheus
=======

[](#zapheus)

[![Latest Version on Packagist](https://camo.githubusercontent.com/618abb915002947db8cc2cc0bfaa1b9d79b9bb8bd42cf5619475da9672215caf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6170686575732f7a6170686575732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zapheus/zapheus)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/zapheus/zapheus/blob/master/LICENSE.md)[![Build Status](https://camo.githubusercontent.com/8bff389e004467681b7165e8d364cc368a5adfd15204a57a4ae9b4b59c881097/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a6170686575732f7a6170686575732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zapheus/zapheus)[![Coverage Status](https://camo.githubusercontent.com/fea83acb0dc723c5b0d07bb084f8db3d87caf732377fb3911f9319b2b506a629/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f7a6170686575732f7a6170686575732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zapheus/zapheus/code-structure)[![Quality Score](https://camo.githubusercontent.com/d81db117760c765e32380ac46557419fad51edfc8e30b73e5371dffec0b229ac/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a6170686575732f7a6170686575732e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zapheus/zapheus)[![Total Downloads](https://camo.githubusercontent.com/a20d9129fa6901673c10fc3f5036a6bd9f76a59c7ccbe47afa2045416fd33a92/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6170686575732f7a6170686575732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zapheus/zapheus)

Inspired from PHP frameworks of all shape and sizes, Zapheus is a web application framework with a goal to be easy to use, educational, and fully extensible to the core. Whether a simple API project or a full enterprise application, Zapheus will try to adapt it according to developer's needs.

```
// Displays a "Hello World" text.

require 'vendor/autoload.php';

// Initializes the router application
$app = new Zapheus\Coordinator;

// Creates a HTTP route of GET /
$app->get('/', function ()
{
    return 'Hello world!';
});

// Handles the server request
echo $app->run();
```

Installation
------------

[](#installation)

Install `Zapheus` via [Composer](https://getcomposer.org/):

```
$ composer require zapheus/zapheus
```

Basic Usage
-----------

[](#basic-usage)

### Using `Coordinator`

[](#using-coordinator)

```
require 'vendor/autoload.php';

// Initializes the router application
$app = new Zapheus\Coordinator;

// Creates a HTTP route of GET /
$app->get('/', function ()
{
    return 'Hello world!';
});

// Handles the server request
echo $app->run();
```

### Using `Middlelayer`

[](#using-middlelayer)

```
require 'vendor/autoload.php';

// Initializes the middleware application
$app = new Zapheus\Middlelayer;

// Initializes the router instance
$router = new Zapheus\Routing\Router;

// Creates a HTTP route of GET /
$router->get('/', function ()
{
    return 'Hello world!';
});

// Pipes the router middleware into the application
$app->pipe(function ($request, $next) use ($router)
{
    // Returns the request attribute value for a route
    $attribute = Zapheus\Application::ROUTE_ATTRIBUTE;

    // Returns the path from the URI instance
    $path = $request->uri()->path();

    // Returns the current HTTP method from the $_SERVER
    $method = $request->method();

    // Creates a new Routing\DispatcherInterface instance
    $dispatcher = new Zapheus\Routing\Dispatcher($router);

    // Dispatches the router against the current request
    $route = $dispatcher->dispatch($method, $path);

    // Sets the route attribute into the request in order to be
    // called inside the Application instance and return the response.
    $request = $request->push('attributes', $route, $attribute);

    // Go to the next middleware, if there are any
    return $next->handle($request);
});

// Handles the server request
echo $app->run();
```

### Run the application using PHP's built-in web server:

[](#run-the-application-using-phps-built-in-web-server)

```
$ php -S localhost:8000
```

Open your web browser and go to .

Features
--------

[](#features)

### No dependencies

[](#no-dependencies)

Zapheus takes no dependencies from other frameworks or libraries. Each component is built with inspiration from the existing popular web frameworks to give developers the best development experience.

### Extensible

[](#extensible)

All of Zapheus' classes have their own easy to understand interfaces. It enables developers to extend or optimize the core functionalities easily.

### Interoperable

[](#interoperable)

Even though Zapheus doesn't have dependencies from other libraries, it does have [bridge packages](https://github.com/zapheus?utf8=%E2%9C%93&q=bridge) to integrate your chosen libraries easily within the framework. These include the [PHP Standards Recommendations](https://www.php-fig.org/psr/) (PSR) like [PSR-07](https://github.com/zapheus/psr-07-bridge) and [PSR-11](https://github.com/zapheus/psr-11-bridge).

```
// Converts a Zend Diactoros instance (a PSR-07 implementation)
// into a Zapheus HTTP request using the PSR-07 Bridge package

use Zapheus\Bridge\Psr\Zapheus\Request;
use Zend\Diactoros\ServerRequestFactory;

// Psr\Http\Message\ServerRequestInterface
$psr = ServerRequestFactory::fromGlobals();

// Zapheus\Http\Message\RequestInterface
$request = new Request($psr);
```

### Framework-friendly

[](#framework-friendly)

Frameworks like Laravel and Symfony have their way of integrating packages into their own ecosystem. With that, Zapheus will try to get them both work in the same application in order for the developers to utilize framework-specific packages to their arsenal.

```
// Registers a third-party Laravel Service Provider
// into Zapheus using the Illuminate Bridge package

use Acme\Providers\AuthServiceProvider;
use Acme\Providers\RoleServiceProvider;
use Illuminate\Container\Container;
use Zapheus\Bridge\Illuminate\IlluminateProvider;
use Zapheus\Container\Container as ZapheusContainer;

// A collection of Laravel Service Providers
$providers = array(AuthServiceProvider::class, RoleServiceProvider::class);

// Include the providers in the bridge instance
$provider = new IlluminateProvider($providers);

// Registers the bindings into a container
$container = $provider->register(new ZapheusContainer);

// Returns the Illuminate\Container\Container
$laravel = $container->get(Container::class);
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/zapheus/zapheus/blob/master/CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Credits
-------

[](#credits)

- [All contributors](https://github.com/zapheus/zapheus/contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [LICENSE](https://github.com/zapheus/zapheus/blob/master/LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

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

Unknown

Total

1

Last Release

2939d ago

### Community

Maintainers

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

---

Top Contributors

[![rougin](https://avatars.githubusercontent.com/u/6078637?v=4)](https://github.com/rougin "rougin (227 commits)")

---

Tags

interoperablephp-frameworkphp-libraryzapheusphp frameworkPHP Libraryinteroperablezapheus

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phphleb/framework

Engine for Framework HLEB2

233318.7k12](/packages/phphleb-framework)[popphp/popphp

Pop PHP Framework, a lightweight, robust PHP framework

5713.5k9](/packages/popphp-popphp)[rougin/slytherin

A simple and extensible PHP micro-framework.

1113.1k4](/packages/rougin-slytherin)[zemit-cms/core

Build high-performance PHP applications faster with Phalcon Kit — a modular developer toolkit that extends the Phalcon framework.

138.2k1](/packages/zemit-cms-core)

PHPackages © 2026

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