Download the PHP package locomotivemtl/charcoal-contrib-filepond without Composer

On this page you can find all versions of the php package locomotivemtl/charcoal-contrib-filepond. 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 charcoal-contrib-filepond

Charcoal FilePond

License Latest Stable Version Code Quality Coverage Status Build Status

A Charcoal service provider for FilePond.

FilePond is a JavaScript library that can upload anything you throw at it, optimizes images for faster uploads, and offers a great, accessible, silky smooth user experience.

This contrib act in fact as an upload server to go along with FilePond.

Table of Contents

Installation

The preferred (and only supported) method is with Composer:

Then add the module to your project's module list like so:

Dependencies

Required

Service Provider

Charcoal\FilePond\ServiceProvider\FilePondServiceProvider

The service provider is automatically instantiated by the module.

Services

Configuration

The configuration for FilePond can be found here : FilePondConfig.php.

It uses the config file file-pond.json as default configset and can be overridden in your project's config.

getServer($ident) and getServers() can be called on the config to retrieve server configuration(s) : ServerConfig.php

The config defines a list of servers :

A server is a combination of an endpoint mapped with a filesystem and information regarding file paths.

Server options.

Option Description Default value
route The server endpoint url for the front-end app. Feeds the server option of FilePond.js /file-pond
filesystem_ident Which Filesystem to use. See charcoal-app. private
upload_path The definitive upload path root for files once the submission is completed. This path can be overridden in the submission action. The Helper FilePondAwareTrait will attempt to save the upload using the property's upload_path uploads/file-pond
transfer_dir The temporary file-pond folder root. Used while processing front-end file upload. Files from this directory will be transferred to there final location after the submission is completed. tmp/file-pond

Usage

Overrides the Module Config as needed by copying the file-pond.json structure in your project's config file as so:

Set a route to give to the FilePond.js front-end framework. A slim route will automatically be created using the desired pattern. Once that is done, configure the front-end file-pond module using the correct FilePond documentation.

The key part of this process is that when the form is submitted, the server handles the transferring of previously uploaded files to their final paths. This allows to move uploads to folders that contains a user specific id and conceals the real path mapping of the server for security reasons.

You can use the FilePondAwareTrait on the action controller to handle filepond transfers. First set the required dependencies like that:

Then you can use the handleTransfer() method to facilitate the transfer upload process.

handleTransfer() for reference :

Example of usage :

Development

To install the development environment:

To run the scripts (phplint, phpcs, and phpunit):

API Documentation

Development Dependencies

Coding Style

The charcoal-contrib-filepond module follows the Charcoal coding-style:

Coding style validation / enforcement can be performed with composer phpcs. An auto-fixer is also available with composer phpcbf.

Credits

License

Charcoal is licensed under the MIT license. See LICENSE for details.


All versions of charcoal-contrib-filepond with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6.0 || >=7.0
ext-json Version *
ext-fileinfo Version *
league/flysystem Version ^1.0
locomotivemtl/charcoal-app Version >=0.7
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 locomotivemtl/charcoal-contrib-filepond contains the following files

Loading the files please wait ....