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 8mo ago1 watchersCompare

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

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 5% of packages

Maintenance42

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity13

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://www.gravatar.com/avatar/6bf66f7fcb98fc87b4ef49ab53c76f428b549c48e27b1433f2331a9077085e3a?d=identicon)[C0PT3R](/maintainers/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/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M191](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

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

1.9k36.7M256](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M592](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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