Download the PHP package arkounay/ux-media without Composer
On this page you can find all versions of the php package arkounay/ux-media. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download arkounay/ux-media
More information about arkounay/ux-media
Files in arkounay/ux-media
Package ux-media
Short Description Async document upload form type using ArtgrisFileManager
License MIT
Informations about the package ux-media
Ux Media
Symfony UX async document upload form type using ArtgrisFileManager, a MediaBundle version that works without having to use most of its dependecies like jQuery / jQuery UI / Font awesome etc (but still requires bootstrap 5)
Installation
Before you start, make sure you have StimulusBundle configured in your app.
Install the bundle using Composer and Symfony Flex:
If you're using WebpackEncore, install your assets and restart Encore (not needed if you're using AssetMapper):
Configuration prerequisites
This bundles uses FileManagerBundle. Make sure its routing is enabled, as well as UxMedia routes :
routing.yaml
:
Also, make sure you have a conf that is defined :
packages/artgris_file_manager.yaml
:
If your project is NOT using bootstrap, you need to enable the bootstrap_modal controller and enable scss :
- Add Encore.enableSassLoader() to your webpack.config.js file
- Install sass
yarn add sass-loader@^12.0.0 sass --dev
And import the propoer bootstrap scss class :
Usage
Works like Artgris/MediaBundle except you have to use UxMediaType and UxMediaCollectionType
EasyAdmin integration
For easyadmin 3+ you need to manually specify the form theme by overriding configureCrud in your DashboardController to add the themes s@ArkounayUxCollection/ux_collection_form_theme.html.twig
and @ArkounayUxMedia/ux_media_form_theme.html.twig
If you're using WebpackEncore, you will need to configure your admin to use it so Symfony UX is taken into account, for example:
All versions of ux-media with dependencies
symfony/flex Version >=1.3.1
symfony/form Version >=5.4.0
symfony/twig-bundle Version >=5.4.0
artgris/filemanager-bundle Version ^2.10.0
gregwar/image Version 2.*
arkounay/ux-collection Version ^4.0.0