PHPackages                             spark/spark - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. spark/spark

ActiveLibrary[Framework](/categories/framework)

spark/spark
===========

A classy web framework for rapid development

13285[7 issues](https://github.com/sparkframework/spark/issues)PHP

Since Apr 18Pushed 13y ago4 watchersCompare

[ Source](https://github.com/sparkframework/spark)[ Packagist](https://packagist.org/packages/spark/spark)[ RSS](/packages/spark-spark/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Spark — A Classy Web Framework for Rapid Development
====================================================

[](#spark--a-classy-web-framework-for-rapid-development)

Spark is a full stack framework built on top of [Silex](http://silex.sensiolabs.org), made for Rapid Development in the same spirit as Ruby on Rails.

Spark is a framework for people who believe:

- The structure of most applications are nearly the same.
- Convention &gt; Configuration
- Asset management should be shipped out of the box.
- ORMs solve 80% of problems.

Building a framework is of course a *huge* project, so there isn't nearly all done. This is what works for now:

- Application generator.
- Asset Pipeline based on [Pipe](http://github.com/CHH/pipe), with deployment support.
- Action Controllers with Action and View Helpers built on Traits, and support for multiple templating strategies.
- Basic framework for generators.
- Extensible command line utility based on Symfony Console.

Quick Start
-----------

[](#quick-start)

### Create an Application

[](#create-an-application)

First get the `spark` executable:

```
% wget http://chh.github.com/spark/spark.phar

```

Then invoke the `create` command and grab some coffee while Composer installs all dependencies:

```
% php spark.phar create MyApp

```

Go into the application directory and start a development server:

```
% cd MyApp
% ./vendor/bin/spark server

```

Then open  in your browser, you should see "Hello World" in big letters.

### Controllers

[](#controllers)

Controllers make your application do things when someone views it in their browser. Controllers go into the directory `app/controllers/`, and are best generated by the `generate controller` command:

```
% ./vendor/bin/spark generate controller user

```

If you open up `app/controllers/MyApp/UserController.php`you should see this:

```
