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 passing

Since Apr 23Pushed 2w 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 2w ago

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/68a010a386ac638aed650d4064586d7c80d1fcefd2fa537e69bce7e7cf4700be/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f7a6170686575732f7a6170686575732f6275696c642e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/zapheus/zapheus/actions)[![Coverage Status](https://camo.githubusercontent.com/1ebf5f54120f9e942e8b4e6d63ca5eea5fda8bd3f236ea295bfefdfe7f3f3d44/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f7a6170686575732f7a6170686575733f7374796c653d666c61742d737175617265)](https://app.codecov.io/gh/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.

```
use Zapheus\Routing\Router;
use Zapheus\Application;

require 'vendor/autoload.php';

// Initializes the application
$app = new Application;

// Creates a HTTP route of GET /
$router = new Router;

$router->get('/', function ()
{
    return 'Hello world!';
});

$app->set(Application::ROUTER, $router);

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

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

[](#installation)

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

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

Basic usage
-----------

[](#basic-usage)

### Using `Application`

[](#using-application)

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

// Initializes the application
$app = new Zapheus\Application;

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

$app->set('Zapheus\Contract\Routing\Router', $router);

// 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 located in the `Contract` namespace. 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);
```

Upgrade Guide
-------------

[](#upgrade-guide)

As Zapheus is evolving as a micro-framework, there might be some breaking changes in its internal code during development. The said changes can be found in [UPGRADING](https://github.com/zapheus/zapheus/blob/master/UPGRADING.md).

Changelog
---------

[](#changelog)

Please see [CHANGELOG](https://github.com/zapheus/zapheus/blob/master/CHANGELOG.md) for more recent changes and latest updates.

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

[](#contributing)

See [CONTRIBUTING](https://github.com/zapheus/zapheus/blob/master/CONTRIBUTING.md) on how to contribute to the project.

License
-------

[](#license)

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

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance63

Regular maintenance activity

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

2989d 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 (292 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.8k12](/packages/phphleb-framework)[popphp/popphp

Pop PHP Framework, a lightweight, robust PHP framework

5714.6k10](/packages/popphp-popphp)[rougin/slytherin

A simple and extensible PHP micro-framework.

1114.5k9](/packages/rougin-slytherin)[zemit-cms/core

Build Phalcon REST APIs faster with database-first scaffolding, model relationships, eager loading, identity, permissions, CLI, and WebSocket support.

138.5k1](/packages/zemit-cms-core)[duxweb/dux-lite

The lightweight framework based on slim php

161.0k9](/packages/duxweb-dux-lite)

PHPackages © 2026

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