Download the PHP package inspiredminds/contao-file-usage without Composer

On this page you can find all versions of the php package inspiredminds/contao-file-usage. 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 contao-file-usage

Contao File Usage

This Contao extension allows you to find and display file references of your files managed by the file manager. For each file in the file manager there will be a new operation (search or link).

File manager

This operation will then show you any references of this file that this extension finds in the database, with links to the original data record, if available.

References

The search results are cached indefinitely. You can force to fetch new search results with the Refresh button. However, depending on the size of your database this might take a while and might not be able to finish within the HTTP request. In this case you will need to rely on the command.

You can also use the "Unused files" global operation in order to find any database assisted files that aren't referenced anywhere (at least according to the search results).

Unused files

File Replacements

This extension also replaces Contao's fileTree widget with its own implementation, showing an additional button with which you can replace the file references found for this file with a new reference.

Gallery Replace references

Cronjob

As previously mentioned the search results are cached. In order for the cache to always be up to date for at least 24 hours this extension implements a daily cronjob. However, the cronjob is only run on the command line interface, so make sure that you have set up Contao's cronjob accordingly.

Command

You can also warm up the file usage result cache from the command line, using the contao_file_usage:warmup command.

Custom Providers

Currently this extension can find any references created by the fileTree input field of any (database based) DCA and it can find any references from {{file::*}}, {{picture::*}} and {{figure::*}} insert tags in any text based fields in the database. If you want to expand this search to other locations you can implement your own file usage provider by implementing the FileUsageProviderInterface.

That is all you need to do, if you enabled autoconfigure for your service. Otherwise you will also need to tag the service with contao_file_usage.provider manually.

You might want or need to implement a new result container using the ResultInterface for your purposes (e.g. if your provider looks in the contents of files, rather than the database for example, which this extension currently does not do by default). Note that currently only DatabaseReferenceResult instances will be shown in the file manager.


All versions of contao-file-usage with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
contao/core-bundle Version ^4.9 || ^5.0
khill/php-duration Version ^1.0
symfony/cache Version ^4.4 || ^5.4 || ^6.2
symfony/config Version ^4.4 || ^5.4 || ^6.2
symfony/dependency-injection Version ^4.4 || ^5.4 || ^6.2
symfony/http-kernel Version ^4.4 || ^5.4 || ^6.2
webmozart/path-util Version ^2.3
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 inspiredminds/contao-file-usage contains the following files

Loading the files please wait ....