Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jester0027/reactorx

ReactorX is a simple PHP framework, built on top of ReactPHP, which provides flexibility for configuration and architecture
https://github.com/jester0027/reactorx

php php-framework php8 reactphp

Last synced: 3 days ago
JSON representation

ReactorX is a simple PHP framework, built on top of ReactPHP, which provides flexibility for configuration and architecture

Awesome Lists containing this project

README

        

# 🏗️ Work in progress



---

## Installation

Install the project with composer
```shell
composer require reactorx/reactorx:dev-master
```

Create an entry file, configure and start the server
```php
run();
```

## Ping request example

Anywhere in the `src` directory, create a `PingController.php` class.

The startup process will automatically pick up the class and register it in the DI container as a controller.
```php
'text/plain'],
"pong"
);
}
}
```

Now sending a request to `/ping` should respond with "pong"
```http request
GET http://localhost:3000/ping
```