Inspiration
I needed a fast and reliable method to create RESTful API's to developer small web sites.
What it does
Basically gives RESTful qualities to any PHP class:
<?php
namespace action;
if (!defined('ROOT_PATH')) die('Not allowed');
/**
* @Route(mapper="/welcome",method="welcome",type="GET")
* @Route(mapper="/welcome/{name}",method="showName",type="GET")
*/
class WelcomeAction extends \core\BaseAction {
public function welcome() {
return $this->makeResponseJson('welcome');
}
public function showName($args) {
return $this->makeResponseJson($args);
}
}
?>
Log in or sign up for Devpost to join the conversation.