Download the PHP package xakki/file-uploader-symfony without Composer

On this page you can find all versions of the php package xakki/file-uploader-symfony. 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 file-uploader-symfony

xakki/file-uploader-symfony

Chunked file uploader bundle for Symfony 7 / 8, speaking Upload Protocol v1. A thin binding over the framework-agnostic xakki/file-uploader (Packagist) core — all upload logic (chunk assembly, hashing, metadata, trash) lives in the core; this package only wires Symfony's storage, security, routing and console to it.

A sibling Laravel binding (xakki/file-uploader-laravel) speaks the same Upload Protocol v1.

Install

Register the bundle (Symfony Flex does this automatically; otherwise add to config/bundles.php):

Mount the routes, choosing a URL prefix:

Publish the widget asset:

Configure

All keys are optional; defaults shown.

Storage

Out of the box, files go to a local directory (storage.local_root). To use S3, GCS, etc., point storage.operator at any league/flysystem-bundle storage service and set storage.public_url_base if it serves public URLs.

Security

Set full_access.users / full_access.roles to grant management rights. Roles are checked through Symfony Security (isGranted). With no SecurityBundle every request is an anonymous guest; set allow_delete_all_files: true to let guests manage files.

Widget

Render the upload widget in any Twig template:

It emits the mount point, the JS config (route URLs + flags) and the vendored UMD bundle from /bundles/fileuploader/file-uploader.umd.js. The same front-end ships with every binding (built from @xakki/file-uploader).

The bundled widget supports theming and i18n out of the box: the locale config key flows through to the front-end and the JS widget exposes theme/string overrides. (max_files is enforced server-side by the core — new uploads beyond the cap are rejected.)

Server-produced messages are also localized: upload/chunk/trash/cleanup results and the error.* / validation.* codes are rendered from the shared core catalog (xakki/file-uploader protocol/i18n/<locale>.json, 8 locales: en ru es pt zh fr de sr) — identical text across every binding and the JS client. The response envelope now carries the stable code (and params) alongside the human message. The locale is resolved per Upload Protocol §5.1: the request locale field (only when in the locales allow-list) → the locale config default → en.

See the @xakki/file-uploader JS docs for the full widget config (themes, custom strings, templates).

Console

HTTP API

Method & path Action
POST {prefix}/chunks upload a chunk
GET {prefix}/files list files
DELETE {prefix}/files/{id} delete (soft by default)
POST {prefix}/files/{id}/restore restore from trash
DELETE {prefix}/trash/cleanup purge expired trash

The wire shape is the shared Upload Protocol v1 envelope, identical to the Laravel binding and the standalone demo.

Test


All versions of file-uploader-symfony with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3|^8.4|^8.5
xakki/file-uploader Version ^0.3.4
league/flysystem Version ^3
symfony/config Version ^7.0|^8.0
symfony/console Version ^7.0|^8.0
symfony/dependency-injection Version ^7.0|^8.0
symfony/framework-bundle Version ^7.0|^8.0
symfony/http-foundation Version ^7.0|^8.0
symfony/http-kernel Version ^7.0|^8.0
symfony/mime Version ^7.0|^8.0
symfony/routing Version ^7.0|^8.0
symfony/security-core Version ^7.0|^8.0
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 xakki/file-uploader-symfony contains the following files

Loading the files please wait ...