2017 © Pedro Peláez
 

project vich-uploader-sandbox

VichUploaderBundle sandbox

image

kphoen/vich-uploader-sandbox

VichUploaderBundle sandbox

  • Saturday, August 29, 2015
  • by K-Phoen
  • Repository
  • 4 Watchers
  • 22 Stars
  • 1,646 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 13 Forks
  • 2 Open issues
  • 4 Versions
  • 3 % Grown

The README.md

Vich Uploader Sandbox

What's inside?

This sandbox comes with several branches, each one featuring distinct configurations of VichUploaderBundle:, (*1)

On top of that, you'll find sample implementations of common needs:, (*2)

  • 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:, (*3)

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

Run the following command for the master branch:, (*4)

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:, (*5)

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:, (*6)

php -S localhost:9090 -t web/

Now open your browser and go to http://localhost:9090/, (*7)

The Versions