Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/weierophinney/phpbnl13statusapisiteexample
Example site for PHPBenelux 2013 "RESTful Services Made Easy With ZF2" tutorial.
https://github.com/weierophinney/phpbnl13statusapisiteexample
Last synced: 3 days ago
JSON representation
Example site for PHPBenelux 2013 "RESTful Services Made Easy With ZF2" tutorial.
- Host: GitHub
- URL: https://github.com/weierophinney/phpbnl13statusapisiteexample
- Owner: weierophinney
- License: bsd-2-clause
- Created: 2013-01-19T21:51:01.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-05-08T11:13:12.000Z (over 11 years ago)
- Last Synced: 2024-12-08T00:51:29.869Z (15 days ago)
- Language: PHP
- Size: 469 KB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
PHPBenelux 2013 "RESTful APIs with ZF2" Example
===============================================Introduction
------------
This is an example project to accompany a tutorial for delivery at PHPBenelux
2013 by Rob Allen and Matthew Weier O'Phinney. It implements a sample RESTful
API.Installation
------------- Initialize git submodules
git submodule update --init
- Run composer
php composer.phar install
- Use the sample database
cp data/status.db.example data/status.db && chmod a+rwX data/status.db
Web Server
----------
Afterwards, set up a virtual host to point to the public/ directory of the
project and you should be ready to go!Alternately, if you have PHP 5.4 or greater installed on your system, you can
test the functionality by running the built-in webserver:cd public
php -S localhost:8080(Choose a hostname and port that will work for your machine.)
Exposed APIs
------------Visit http://localhost:8080/status/api/documentation to get information about
the exposed APIs and usage. We recommend using either curl or HTTPie when
testing the API.