Download the PHP package evolutasrl/dropzone-bundle without Composer

On this page you can find all versions of the php package evolutasrl/dropzone-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dropzone-bundle

DropzoneBundle

The DropzoneBundle adds support for a direct S3 upload in Symfony2 forms. It provides a form type for sending files directly to your Amazon AWS S3 bucket without touch your webserver.

Read more about this technique in Aws website.

Features include:

This bundle is well unit tested by phpspec.

Build Status Scrutinizer Code Quality

Installation

Installation is a quick (I promise!) 4 step process:

  1. Download DropzoneBundle using composer
  2. Enable the Bundle
  3. Configure the DropzoneBundle
  4. Javascript and css

Step 1: Download DropzoneBundle using composer

Require the bundle with composer:

   $ composer require evoluta/dropzone-bundle "1.0.x-dev"

Composer will install the bundle to your project's vendor/evoluta/dropzone-bundle directory.

Step 2: Enable the bundle

Enable the bundle in the kernel::

Options

Endpoint

You can override global aws endpoint configuration for this field.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'endpoint' => '//s3-eu-west-1.amazonaws.com/', ) )

AccessKey

You can override global accessKey configuration for this field.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'accessKey' => '', ) )

Secret

You can override global secret configuration for this field.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'secret' => '', ) )

Bucket

You can override global secret configuration for this field.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'bucket' => '', ) )

Acl

Amazon S3 supports a set of predefined grants, known as canned ACLs. Each canned ACL has a predefined a set of grantees and permissions. You ca read more here

You can override global all configuration for this field.

You can use one of these options:

The default value is public-read

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'all' => 'public-read', ) )

Directory

The sub directory where to put file. The default value is null.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'directory' => 'images/sub1/sub2' ) )

AcceptedFiles

The default implementation checks the file's mime type or extension against this list. This is a comma separated list of mime types or file extensions. Eg.: image/*,application/pdf,.psd. The default config allow to upload every kind of file.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'acceptedFiles' => 'image/*' ) )

ExpireAt

The expiration element specifies the expiration date and time of the POST policy. Indicate how long the user can wait from page loading to finish upload. It expects to be given a string containing an English date format. You can use this keywords:

Internal this function use strtotime read more in php website.

$form = $this->createFormBuilder() ->add( 'File upload', 'dropzoneS3File', array( 'expireAt' => '+1 hour' ) )

Usage - upload multiple

Still in progress. Please help us!

TODO

License

This bundle is under the MIT license. See the complete license in the bundle:

Resources/meta/LICENSE

About

DropzoneBundle is a evolutasrl initiative coded by brainrepo proudly made in Sardinia with love :).

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps.


All versions of dropzone-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.9
symfony/framework-bundle Version ~2.7|~3.4
symfony/twig-bundle Version ~2.3|~3.4
symfony/form Version ~2.3|~3.4
symfony/validator Version ~2.8|~3.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package evolutasrl/dropzone-bundle contains the following files

Loading the files please wait ....