mhr / simple-restful
Agile Restful framework
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/mhr/simple-restful
Requires
- php: ^7.2
This package is auto-updated.
Last update: 2025-09-21 01:24:20 UTC
README
Author:
Mahdi Hasanpour mh.hasnapour@gmail.com
Getting Start
Install library with Composer
composer require mhr/simple-restful
Create a php file that all incoming request rewrite to it file (e.g. with .htaccess and RewriteEngine ) with below codes.
<?php require __DIR__ . '/vendor/autoload.php'; $core = new \SimpleRESTful\Core(); $core->addMiddleware(function ($next, \SimpleRESTful\HTTP\Response $response) { $next(); $response->generateOutput(); }); $core->run();