2017 © Pedro Peláez
 

library rest-server

Simple php REST-server

image

alexdevid/rest-server

Simple php REST-server

  • Wednesday, February 11, 2015
  • by alexdevid
  • Repository
  • 1 Watchers
  • 0 Stars
  • 53 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

# 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:, (*1)

<?php

$server = new Alexdevid\RestServer
$server->run();

Then add Controllers, (*2)

Controllers

Controllers should extend Alexdevid\RestController class and it methods:, (*3)

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, (*4)

Testing

You can run PHPUnit tests in tests folder, (*5)

The Versions

11/02 2015

dev-master

9999999-dev http://github.com/alexdevid/rest-server/

Simple php REST-server

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php rest minimal

04/02 2015

dev-dev

dev-dev http://github.com/alexdevid/rest-server/

Simple php REST-server

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php rest minimal

04/02 2015

1.0.6-beta

1.0.6.0-beta http://github.com/alexdevid/rest-server/

Simple php REST-server

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php rest minimal

30/01 2015

1.0.5-beta

1.0.5.0-beta http://github.com/alexdevid/rest-server/

Simple php REST-server

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

php rest minimal