Skip to content

mh828/SimpleRESTful

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SimpleRESTFUL is a agile framework for build RESTFUL api with PHP

Author:

Mahdi Hasanpour [email protected]

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();

About

Tool for make RESTful API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages