This is a simple drag'n'drop upload script I made in a boring eveening: it allows your users to leave you a file. The link to download it will be sent to you by email.
It uses the following libraries/technologies:
- Twitter Bootstrap, the CSS toolkit from Twitter.
- Silex, a PHP micro-framework made on top of Symfony2 components.
- Monolog, a PHP5 logging library.
- Twig, an amazing PHP template engine.
- jQuery Filedrop, guess for what?
- Swiftmailer, again, an amazing PHP mailing library.
Open a terminal and type:
$ git clone git://github.com/alessandro1997/Dropzone.git
This will copy Dropzone into the Dropzone folder.
Move into Dropzone's directory and type:
$ git submodule init
$ git submodule update
This will download Git submodules into their directories.
Then you have to type:
$ wget http://getcomposer.org/composer.phar
$ php composer.phar install
This will download a copy of Composer and install the project's dependencies.
Copy the app/config.php.dist file into app/config.php and customize the values.
Create the app/logs and app/cache directories:
$ mkdir app/logs app/cache
$ chmod 777 app/logs app/cache
Do the same for your uploads directory.
Upload everything to your FTP server (make sure web is the document root) and check that everything works as expected.
That's it!