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

ActiveLibrary[Framework](/categories/framework)

orb/orb
=======

A quick and easy framework to rapidly create API or simple website.

1.1.2(1y ago)012MITPHPPHP ^8.2CI passing

Since Mar 26Pushed 1y ago1 watchersCompare

[ Source](https://github.com/debuss/orb)[ Packagist](https://packagist.org/packages/orb/orb)[ RSS](/packages/orb-orb/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (8)Dependencies (6)Versions (10)Used By (0)

[![Latest Stable Version](https://camo.githubusercontent.com/ac60f33a1606cf5cf188d5661a05be7301e680f6a7d9d1862cd5cfe3fb6293a4/68747470733a2f2f706f7365722e707567782e6f72672f6f72622f6f72622f76)](//packagist.org/packages/orb/orb)[![License](https://camo.githubusercontent.com/b043501dea31fa276f3b6101702fea3cd1e6f7dd72365f461b6d377494c7c34c/68747470733a2f2f706f7365722e707567782e6f72672f6f72622f6f72622f6c6963656e7365)](//packagist.org/packages/orb/orb)

### Orb

[](#orb)

 A simple and fast framework to build REST APIs and simple web applications.

 Table of Contents1. [About The Project](#about-the-project)
2. [Getting Started](#getting-started)
    - [Prerequisites](#prerequisites)
    - [Installation](#installation)
3. [Usage](#usage)
4. [Testing](#testing)
5. [Contributing](#contributing)
6. [License](#license)
7. [Acknowledgments](#acknowledgments)

About The Project
-----------------

[](#about-the-project)

Quickly and easily create REST APIs and simple web applications with Orb.
Versatile enough to build any kind of application, and simple enough to be used by beginners.

([back to top](#readme-top))

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

You need `PHP >= 8.2` to use Orb but the latest stable version of PHP is always recommended.

### Installation

[](#installation)

Via [composer](https://getcomposer.org/) :

`composer require orb/orb`

([back to top](#readme-top))

Usage
-----

[](#usage)

```
require_once __DIR__.'/vendor/autoload.php';

use Orb\Orb;

$orb = new Orb();

$orb->get('/', 'Hello world !');
$orb->get('/using-function', fn() => 'Hello world !');
$orb->get('/using-invoke', MyController::class);
$orb->get('/using-class-method-1', 'MyController::method1');
$orb->get('/using-class-method-2', 'MyController->method2');
$orb->get('/psr7-response', fn() => new \Laminas\Diactoros\Response\HtmlResponse('Hello world !'));

$orb->run();
```

It is possible to return mostly anything from a route handler.
If you do not return a PSR-7 `ResponseInterface`, Orb will try to convert the returned value to a `ResponseInterface`.

Note that Orb will return a JSON response if the returned value is an array or an object, and an XML response if the returned value is a `SimpleXMLElement` or `DOMDocument`.
The default response is a `text/html` response.

([back to top](#readme-top))

Testing
-------

[](#testing)

This package uses `Pest` as test framework.
To run tests :

```
./vendor/bin/pest tests
```

([back to top](#readme-top))

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

[](#contributing)

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

1. Fork the Project
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
4. Push to the Branch (`git push origin feature/AmazingFeature`)
5. Open a Pull Request

([back to top](#readme-top))

License
-------

[](#license)

Distributed under the MIT License. See [License File](https://github.com/debuss/orb/blob/master/LICENSE.md) for more information.

([back to top](#readme-top))

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance46

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

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

Total

8

Last Release

402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0e1a70117520fe10a630d61c750bbe6888d174e9903825e741470f818ee2c5d1?d=identicon)[debuss-a](/maintainers/debuss-a)

---

Top Contributors

[![debuss](https://avatars.githubusercontent.com/u/2537607?v=4)](https://github.com/debuss "debuss (21 commits)")

---

Tags

psrpsr-7middlewareframeworkpsr-15

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[cakephp/cakephp

The CakePHP framework

8.8k18.5M1.6k](/packages/cakephp-cakephp)[chubbyphp/chubbyphp-framework

A minimal, highly performant middleware PSR-15 microframework built with as little complexity as possible, aimed primarily at those developers who want to understand all the vendors they use.

13544.4k4](/packages/chubbyphp-chubbyphp-framework)[igniphp/framework

Swoole, PSR-7, PSR-15 modular micro anti-framework.

2651.0k1](/packages/igniphp-framework)

PHPackages © 2026

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