PHPackages                             c0pt3r/sonet - 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. c0pt3r/sonet

ActiveLibrary[Framework](/categories/framework)

c0pt3r/sonet
============

!!WIP!! A simple framework for websites/web APIs

02PHP

Since Aug 17Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/C0PT3R/Sonet)[ Packagist](https://packagist.org/packages/c0pt3r/sonet)[ RSS](/packages/c0pt3r-sonet/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sonet (work in progress)
========================

[](#sonet-work-in-progress)

### A simple PHP framework for creating websites and/or web APIs.

[](#a-simple-php-framework-for-creating-websites-andor-web-apis)

It supports routing of HTTP requests with methods GET, POST, PUT and DELETE. Other things too... maybe one day I'll make a doc for it.

Main concepts:
--------------

[](#main-concepts)

This section is pretty much just a placeholder.

- Application: A global container for all application data. Is also a Router itself (aka: main application router).
- VirtualPath: An extended path that can contain variables, options and aliases.
- Router: An object that contains Routes and is mounted to a VirtualPath. You can have as many as you want.
- Route: An object created by a Router and mounted onto it.
- StatusEvent: An event that is triggered when certain HTTP statuses are encountered.
- Request: A predefined object that contains information about the requested resource.
- Response: A predefined object that contains information about the response to be sent.
- Handler: A user defined callable that accepts Request and Response as parameters. It can be assigned to a Route or a StatusEvent.

Example code:
-------------

[](#example-code)

This code creates a Route that will listen for a request using HTTP method GET.

```
$app = Sonet\Application::getApp();

$app->get('hello|h/?name', function ($req, $res) {
	$name = $req->params->name ?? 'world';
	$res->html("Hello, $name!");
});

$app->run();
```

This VirtualPath corresponds to:

- `/hello`
- `/hello/([^/]+)`
- `/h`
- `/h/([^/]+)`

### For example,

[](#for-example)

- `/hello` will generate "Hello, world!"
- `/h/Einstein` will generate "Hello, Einstein!"

###  Health Score

16

—

LowBetter than 4% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1578906?v=4)[C0PT3R](/maintainers/C0PT3R)[@C0PT3R](https://github.com/C0PT3R)

---

Top Contributors

[![C0PT3R](https://avatars.githubusercontent.com/u/1578906?v=4)](https://github.com/C0PT3R "C0PT3R (47 commits)")

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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