2017 © Pedro Peláez
 

library silex-sample

Silex sample

image

eminetto/silex-sample

Silex sample

  • Sunday, January 26, 2014
  • by eminetto
  • Repository
  • 4 Watchers
  • 43 Stars
  • 136 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 21 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The 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>

The Versions