Skip to content

mikegreiling/project

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spark

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 the built-in PHP web server:

cd spark-project
php -S localhost:8000 -t web/

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"}

About

A PSR-7 compliant ADR framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%