library platypus
A simple Framework for reusing existing Objects as a base for REST-APIs.
restful-platypus/platypus
A simple Framework for reusing existing Objects as a base for REST-APIs.
- Monday, October 24, 2016
- by restipus
- Repository
- 0 Watchers
- 0 Stars
- 6 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
Platypus
Platypus is a simple Framework written in PHP for reusing existing Objects as a base for REST-APIs. It supports automatic generation of HATEOAS-links and makes use of annotations - so (in most cases) the code can stay the same., (*1)
A very basic example could look like this:, (*2)
<?php
/**
* @self /user/{name}
*/
class User {
/**
* @method get
*/
public function get($name) {
return ['name' => $name];
}
}
More at restful-platyp.us., (*3)
dev-master
9999999-dev
A simple Framework for reusing existing Objects as a base for REST-APIs.
Sources
Download
MIT
The Requires
framework
rest
hateoas