PHPackages                             zeflasher/rest - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. zeflasher/rest

Abandoned → [nolazybits/rest-me](/?search=nolazybits%2Frest-me)ArchivedLibrary[API Development](/categories/api)

zeflasher/rest
==============

Rest client/server

12671PHP

Since May 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/nolazybits/restserver)[ Packagist](https://packagist.org/packages/zeflasher/rest)[ RSS](/packages/zeflasher-rest/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

RestServer
==========

[](#restserver)

Introduction
------------

[](#introduction)

RestServer is a php library (or micro-framework) for building RESTful webservices and websites.

It allows you to map urls patterns to specific Controllers, and give you access to the http request property thru a RestRequest interface, and allow control of the response with the RestResponse object. It support call chaining, authentication and is very simple to use in your way, making it possible to combine it with your favorite frameworks. There is also a independent RestClient class that easy access to restful servers.

After donwloading the package you can navigate to docs folder for api documentation and to tests folder for tests and examples.

It is a stable package that is in use for almost 3 years (and counting), it is easy to extend and to adapt to your needs.

There are two published examples: [JobJoker](http://github.com/diogok/JobJoker) Is a Job/proccess control api/ui for php [IdeasWall.org](http://github.com/diogok/ideaswallorg) Is an experiment on running php and restserver on google app engine (outdated, auth is different now, but rest is okey)

Usage
-----

[](#usage)

[API](http://diogok.net/restserver/docs)

[Example server.php](https://github.com/diogok/restserver/blob/master/tests/server.php)

```
