PHPackages                             smith981/silex-skeleton - 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. smith981/silex-skeleton

AbandonedLibrary[Framework](/categories/framework)

smith981/silex-skeleton
=======================

This is a working skeleton used to rapidly develop a new Silex site, with Twitter Bootstrap, Twig, and a Doctrine ORM provider installed and registered. See https://github.com/smith981/silex-skeleton for installation instructions.

680PHP

Since Feb 25Pushed 1y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

silex-skeleton
==============

[](#silex-skeleton)

This repository has not been maintained in quite a while. Please do not use it!
===============================================================================

[](#this-repository-has-not-been-maintained-in-quite-a-while-please-do-not-use-it)

This is a working skeleton used to rapidly develop a new Silex site, with Twitter Bootstrap, Twig, and a Doctrine ORM provider installed and registered. It also includes the Doctrine console and a CRUD generator in the /bin directory, which uses components from Zend Framework 2.x.

### Included Packages

[](#included-packages)

- Twig 1.12 (twig/twig)
- Doctrine ORM Provider (taluu/doctrine-orm-provider)
- Twitter Bootstrap installed is in 'web' directory. The requisite CSS and JS includes are in the views/base.twig.html template. Extend the base template in other Twig files if you want to use Bootstrap.
- Zend/Form

### Installation using [Composer](http://getcomposer.org)

[](#installation-using-composer)

1. From the web root:

```
composer create-project --stability="dev" smith981/silex-skeleton silex

```

2. Or, if you haven't renamed composer.phar:

```
php composer.phar create-project --stability="dev" smith981/silex-skeleton silex

```

This will create the installation in the 'silex' directory. 2. Change the title in src/smith981/silex-skeleton/views/base.twig.html so that it shows your site name. 3. If you need a database, open index.php and uncomment the lines that register Doctrine DBAL and edit the connection parameters there. 4. Create your routes as needed in index.php, and your views in the src/smith981/silex-skeleton/views.

**Package includes *.htaccess* used for removing 'index.php' from url!** Be sure .htaccess overrides are allowed by your httpd.conf settings.

I have not attempted to run this under IIS, pull requests are welcome on this.

For examples, see comments in index.php.

Doctrine DBAL
-------------

[](#doctrine-dbal)

Uncomment the following code in /index.php and set your database parameters:

```
