BEAR.Package is a BEAR.Sunday resource oriented framework implementation package.
composer create-project -n bear/package bear.package ~1.0
cd bear.package
A resource can then be accessed from the console.
php docs/demo-app/bootstrap/web.php get /
200 OK
content-type: application/hal+json
{
"greeting": "Hello BEAR.Sunday",
"_links": {
"self": {
"href": "/"
}
}
}
Fire up the built-in php web server.
php -S 127.0.0.1:8080 -t docs/demo-app/var/www
You can then open a browser at http://127.0.0.1:8080
to see the json output.
Documentation is available at http://bearsunday.github.io/.