Download the PHP package floppy/bundle without Composer

On this page you can find all versions of the php package floppy/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 bundle

FloppyBundle

Build Status

FloppyBundle provides few additional integration points with FloppyServer library. Before reading this documentation, you should read documentation for FloppyServer and FloppyClient first.

The main goal of Floppy-family libraries is to make dealing with every aspect of files as easy as possible. Floppy-family libraries improve dealing with: file uploading, file storing, generating various file versions (thumbnails, watermarks etc.), representing files in Entities and more.

Documentation

ToC

Quick tour

1) Configure your floppy server (shown in floppy-server doc)

2) Add floppy/bundle to your composer and register this bundle in AppKernel:

composer.json (stable version is recommended, "*" as a version is only an example).

app/AppKernel.php:

3) Configure this bundle:

And that's all, next points explain how to use features of this bundle.

4) Define your form model or entity:

5) Use floppy_file in your form type:

6) Create your action to handle this form

7) In action template you should add css and javascripts for this form:

8) Use your already created entity object and render file url:

Integration points

FloppyClient library adds two integration points with FloppyServer:

FloppyBundle adds additional 3 integration points:

Form

floppy_file form type allows you to upload and assign file to your entity object. The form type uses plupload library as javascript uploader by default. To set up floppy_file, you should include floppy styles (css file), jquery, plupload and FloppyFileFormType.js in your layout.

Example:

floppy_file has few options, the most important are:

Doctrine column type

floppy_file column type simplify dealing with files in your entities. File in entity is represented by Floppy\Common\FileId object. The most interesting properties of FileId are:

Example:

Twig

After upload file (thanks to floppy_file form type) and store it in your entity (thanks to floppy_file doctrine column type) you may want to display url to the file. floppy_url twig function is able to generate url to the file.

Examples of floppy_url usage:

Configuration

Only two options are required: floppy.endpoint.host and floppy.secret_key. There is a list of all configuration options:

License

This project is under MIT license.


All versions of bundle with dependencies

PHP Build Version
Package Version
Requires floppy/client Version >=0.1.0,<0.2.0
symfony/form Version ~2.1
symfony/framework-bundle Version ~2.1
doctrine/doctrine-bundle Version *
doctrine/orm Version ~2.0
symfony/twig-bridge Version ~2.1
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 floppy/bundle contains the following files

Loading the files please wait ....