Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/jester0027/reactorx
- Owner: Jester0027
- License: mit
- Created: 2022-12-22T19:23:13.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-07T15:20:21.000Z (12 months ago)
- Last Synced: 2024-10-15T01:22:01.980Z (2 months ago)
- Topics: php, php-framework, php8, reactphp
- Language: PHP
- Homepage: https://packagist.org/packages/reactorx/reactorx
- Size: 24.4 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
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
```