This extension provides useful file helpers for Contao CMS.
- See where file are being included
- Edit related modules/elements with one click
- Manage your files in the contao backend
- View file meta information
- PHP ^7.2 || ^8.0
- Contao ^4.9
When using the managed edition it's pretty simple to install the package. Just search for the package in the Contao Manager and install it. Alternatively you can use the CLI.
# Using the contao manager
$ php contao-manager.phar.php composer require markenzoo/contao-file-helper-bundle
# Using composer directly
$ php composer.phar require markenzoo/contao-file-helper-bundle
# Using global composer installation
$ composer require markenzoo/contao-file-helper-bundle
If you use Contao in a symfony application without contao/manager-bundle, you have to register the bundle manually:
class AppKernel
{
public function registerBundles()
{
$bundles = [
// ...
new Markenzoo\ContaoFileHelperBundle\ContaoFileHelperBundle()
];
}
}
Run the PHP-CS-Fixer and the unit test before you release your bundle:
composer run-script fix -v
composer run-script lint
composer run-script test
vendor/bin/ecs check src tests --config ecs.php --no-progress-bar
vendor/bin/phpstan analyse --no-progress
vendor/bin/phpunit --colors=always