silex-sample
PHP
Latest commit 5e0018b Jan 26, 2014 @eminetto Merge pull request #5 from guiseek/master
Update User.php
Permalink
Failed to load latest commit information.
bin First commit Sep 2, 2012
src/Coderockr/Model Update User.php Jan 26, 2014
tests First commit Sep 2, 2012
views Extended twig Sep 2, 2012
.gitignore First commit Sep 2, 2012
README.md Update README.md Jul 4, 2013
app.php Update app.php Jan 26, 2014
bootstrap.php First commit Sep 2, 2012
composer.json
index.php First commit Sep 2, 2012
packages.json Added support to Composer create-project command Sep 3, 2012
phpunit.xml First commit Sep 2, 2012

README.md

Silex and Doctrine

Install

Install composer

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

Execute

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

Configure database connection

Modify database connection parameters in bootstrap.php
Create database

Execute

./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
    </Directory>
</VirtualHost>