alexdevid / rest-server
Simple php REST-server
Installs: 80
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 2
pkg:composer/alexdevid/rest-server
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-25 22:19:32 UTC
README
Documentation @todo
- Installation
- Usage
- Docs
Installation:
Using Composer:
- install Composer
composer require alexdevid/rest-server:dev-master
Usage
Somewhere in the begining of your script add this:
<?php $server = new Alexdevid\RestServer $server->run();
Then add Controllers
Controllers
Controllers should extend Alexdevid\RestController class and it methods:
public function get(); public function post(); public function put(); public function delete();
Each method is responsible for its own request method.
Look examples folder for more info
Testing
You can run PHPUnit tests in tests folder