sparkphp / project
A sample project for building an application using Spark.
Installs: 227
Dependents: 0
Suggesters: 0
Security: 0
Stars: 12
Watchers: 8
Forks: 7
Open Issues: 1
Type:project
Requires
- sparkphp/spark: ^0.7
This package is not auto-updated.
Last update: 2015-12-31 18:09:33 UTC
README
Spark is a PSR-7 compliant Action-Domain-Responder (ADR) system. While it may look like a micro-framework (and it is), it is more like a wrapper around the real logic of your application domain. It's also PSR-1, PSR-2, and PSR-4 compliant.
Check out the source project here.
Installing Spark
You will need Composer to install Spark.
Pick a project name, and use Composer to create it with Spark. Let's create
one called spark-project
:
composer create-project -s dev sparkphp/project spark-project
Confirm the installation by changing into the project directory and starting a development web server:
cd spark-project bin/start-server
You can then browse to http://localhost:8000/hello and see JSON output:
{"hello": "world"}
You can also browse to http://localhost:8000/hello/nancy and see modified JSON output:
{"hello":"nancy"}