Skip to content

alexdevid/rest-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP REST-Server


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages