kphoen / vich-uploader-sandbox
VichUploaderBundle sandbox
Installs: 1 944
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 4
Forks: 18
Open Issues: 2
Type:project
Requires
- php: >=5.3.3
- incenteev/composer-parameter-handler: ~2.0
- sensio/distribution-bundle: ~2.3
- symfony/assetic-bundle: ~2.3
- symfony/monolog-bundle: ~2.4
- symfony/symfony: ~2.4
- twig/extensions: ~1.0
This package is auto-updated.
Last update: 2020-01-27 15:33:51 UTC
README
What's inside?
This sandbox comes with several branches, each one featuring distinct configurations of VichUploaderBundle:
doctrine-sonata
: gaufrette, Doctrine ORM and SonataAdminBundle ;propel-admingen
: flysystem, Propel ORM and AdmingeneratorGeneratorBundle.
On top of that, you'll find sample implementations of common needs:
- OneToOne relationship: one entity = one uploadable image ;
- OneToSeveral relationship: each entity has exactly X uploadable images (where
X
is known); - OneToMany relationship: one entity = X uploadable images, where
X
can be different from one entity to another ;
Installation
Get composer:
curl -s http://getcomposer.org/installer | php
Run the following command for the master branch:
php composer.phar create-project kphoen/vich-uploader-sandbox:dev-master
The installation process used Incenteev's ParameterHandler to handle
parameters.yml
configuration. With the current installation, it is possible
to use environment variables to configure this file:
DATABASE_NAME=sandbox DATABASE_USER=sandbox DATABASE_PASSWORD=sandbox php composer.phar create-project kphoen/vich-uploader-sandbox:dev-master
Run
If you are running PHP5.4, you can use the built in server to start the demo:
php -S localhost:9090 -t web/
Now open your browser and go to http://localhost:9090/