eminetto / silex-sample
Silex sample
Installs: 146
Dependents: 0
Suggesters: 0
Security: 0
Stars: 39
Watchers: 5
Forks: 18
Open Issues: 1
Requires
- doctrine/dbal: 2.2.*
- doctrine/orm: *
- silex/silex: 1.0.*
- swiftmailer/swiftmailer: >=4.1.2,<4.2-dev
- symfony/browser-kit: *
- symfony/console: *
- symfony/http-kernel: *
- symfony/twig-bridge: 2.1.*
- twig/twig: >=1.8,<2.0-dev
This package is not auto-updated.
Last update: 2024-09-14 12:51:57 UTC
README
#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>