There is no license information available for the latest version (dev-master) of this package.

Silex sample

dev-master 2014-01-26 19:49 UTC

This package is not auto-updated.

Last update: 2024-05-11 11:12:30 UTC


#Silex and Doctrine


Install composer

curl -s https://getcomposer.org/installer | php


php composer.phar create-project -s dev eminetto/silex-sample project_name

Configure database connection

Modify database connection parameters in bootstrap.php
Create database


./bin/doctrine orm:schema-tool:create

Configure Apache VirtualHost

<VirtualHost *:80>
    DocumentRoot "/vagrant/silex-sample"
    ServerName silex-sample.dev

    <Directory "/vagrant/silex-sample">
            Options Indexes Multiviews FollowSymLinks
            AllowOverride All
            Order allow,deny
            Allow from all

            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule !\.(js|ico|gif|jpg|png|css|htm|html|txt|mp3)$ index.php