PHPackages                             exssah/exss - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. exssah/exss

ActiveLibrary[HTTP &amp; Networking](/categories/http)

exssah/exss
===========

This is a library for creating an asynchronous HTTP server using PHP.

0.1.0(2y ago)07MITPHP

Since Oct 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/guptasomnath/Exss)[ Packagist](https://packagist.org/packages/exssah/exss)[ RSS](/packages/exssah-exss/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (2)Used By (0)

Exss
====

[](#exss)

Exss is a library for creating an asynchronous HTTP server using PHP. It is built on top of the ReactPHP framework. With this library, you can create your asynchronous web app using PHP, and it is similar to Express.js.

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

[](#installation)

Use the package manager [Composer](https://getcomposer.org/) to install Exss.

```
composer require exssah/exss
```

Usage
-----

[](#usage)

Basic http server

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

use Exssah\Exss\Exss;
use Exssah\Exss\Req;
use Exssah\Exss\Res;

# create a object of Exss class
$app = new Exss();

# use route methods to accept asynchronous HTTP requests
$app::get('/hello', function(Req $req, Res $res){
  return $res::send('Hello world');
});

# start the server at port 8080
$app::listen(8080, function(){
    echo 'http://localhost:8080';
});
```

Accept The Request Parameters
ex:- [http://localhost:8080/user?id=5&amp;name=Somnath](http://localhost:8080/user?id=5&name=Somnath) Gupta

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

use Exssah\Exss\Exss;
use Exssah\Exss\Req;
use Exssah\Exss\Res;

# create a object of Exss class
$app = new Exss();

# use route methods to accept asynchronous HTTP requests
#ex:- http://localhost:8080/user?id=5&name=Somnath Gupta

$app::get('/user', function(Req $req, Res $res){

  $userID = $req::params('id'); #'null' if not exist
  $userName = $req::params('name'); #'null' if not exist

 #use the sendJson method to send a JSON response
  return $res::sendJson([
    'id' => $userID,
    'name' => $userName,
  ]);

});

# start the server at port 8080
$app::listen(8080, function(){
    echo 'http://localhost:8080';
});
```

Accept The Request Body

URl:-

Body
{
"username" : "Somnath Gupta",
"gmail" : "",
"password" : "U7%)#",
}

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

use Exssah\Exss\Exss;
use Exssah\Exss\Req;
use Exssah\Exss\Res;

# create a object of Exss class
$app = new Exss();

# use route methods to accept asynchronous HTTP requests

$app::post('/user', function(Req $req, Res $res){

  $username = $req::body('username'); #'null' if not exist
  $gmail = $req::body('gmail'); #'null' if not exist
  $password = $req::body('password'); #'null' if not exist

 #use the sendJson method to send a JSON response
  return $res::sendJson([
    'username' => $username,
    'gmail' => $gmail,
    'password' => $password,
  ]);

});

# start the server at port 8080
$app::listen(8080, function(){
    echo 'http://localhost:8080';
});
```

Your can use other fetchers of [ReactPHP framework](https://github.com/reactphp/reactphp)
-----------------------------------------------------------------------------------------

[](#your-can-use-other-fetchers-of-reactphp-framework)

[1) Promise](https://github.com/reactphp/promise) , [2) Async Utilities](https://github.com/reactphp/async), [3) Browser Api's](https://github.com/reactphp/http#browser)

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Step 1: Download, install, and configure [PHP](https://www.php.net/downloads) and [Composer](https://getcomposer.org/) to your local computer.

Step 2: Now Fork a repo

Step 3: Download the code to your local machine

Step 4: Open the folder 'Exss'

Step 5: Open Terminal

Step 6: Run this command to download all the necessary dependencies.

```
composer install
```

Step 7: If you don't know about [ReactPHP framework](https://github.com/reactphp/reactphp) then you can visit there

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity33

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

952d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17a54fe41dffc384ef861ec18361092b90932aee0b7d871f46879c358beabc35?d=identicon)[SomnathGupta](/maintainers/SomnathGupta)

---

Top Contributors

[![guptasomnath](https://avatars.githubusercontent.com/u/131764381?v=4)](https://github.com/guptasomnath "guptasomnath (8 commits)")

### Embed Badge

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

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

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)[team-reflex/discord-php

An unofficial API to interact with the voice and text service Discord.

1.1k379.4k24](/packages/team-reflex-discord-php)[clue/docker-react

Async, event-driven access to the Docker Engine API, built on top of ReactPHP.

113154.9k1](/packages/clue-docker-react)[discord-php/http

Handles HTTP requests to Discord servers

25318.7k8](/packages/discord-php-http)[binsoul/net-mqtt-client-react

Asynchronous MQTT client built on React

48787.8k24](/packages/binsoul-net-mqtt-client-react)

PHPackages © 2026

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