PHPackages                             barnabywalters/silex-starter - 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. barnabywalters/silex-starter

ActiveLibrary[Framework](/categories/framework)

barnabywalters/silex-starter
============================

The seed for amazing new projects.

v0.1.0(11y ago)1241CC0PHP

Since May 20Pushed 11y ago1 watchersCompare

[ Source](https://github.com/barnabywalters/silex-starter)[ Packagist](https://packagist.org/packages/barnabywalters/silex-starter)[ RSS](/packages/barnabywalters-silex-starter/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (8)Versions (2)Used By (0)

barnabywalters/silex-starter
============================

[](#barnabywalterssilex-starter)

My skeleton for PHP+Silex applications. Small, flat, predictable, minimal, flexible. Based very much on fabpot’s silex skeleton.

From zero to hello-world:

```
> curl -Ss https://getcomposer.org/installer | php
> ./composer.phar create-project barnabywalters/silex-starter
> ./serve
> ./open

```

What next?
----------

[](#what-next)

- Replace namespace placeholders with the namespace for your project with this quick zsh+perl script: `perl -p -i -e 's/YOUR_NAMESPACE_HERE/Your\\Actual\\Namespace/g' **/*.php`
- Put application setup in `src/app.php` and `config/`
- Put new controllers in `src/controllers.php`, splitting them off into separate, sensible files when there are too many
- Put new templates in `templates/`
- Put new tests in `test/ApplicationTest.php`
- Put javascript in `web/js/app.js`
- Put new console commands in `src/console.php`

If I want to implement logging in really quickly I usually install `taproot/authentication` — the lowest-friction route to allowing login with your domain name.

Back-end
--------

[](#back-end)

A basic Silex app is created with a URL generation provider and a basic pure-PHP template rendering provider which can be used like this:

```
