A simple example used to demo PHPStorm for GrPhpDev
CSS JavaScript PHP
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
data
module/Application
public
.gitignore
.gitmodules
LICENSE.txt
README.md
composer.json
composer.lock
composer.phar
init_autoloader.php

README.md

Fancy Todos

Built to showcase PHPStorm for GrPhpDev

Slides for this presentation located at slid.es

Stack

This simple showpiece was initialized via composer. It is built off of the ZF2 Skeleton Application

MongoDB was the db of choice, and the Doctrine ODM Module for ZF2 was used to do the talking.

There is a single RESTful TodosController that highlights creating and listing resources.

Running

First install dependencies via composer (from the project root):

composer install

The easiest way to run this app is to fire up mongodb on the default port and use the the PHP 5.4 builtin web server.

mongod
php -s 0.0.0.0:8080

There is only one endpoint this piece exposes - /todos. There is a POST endpoint for creating todos, and a GET endpoint for listing them.