Download the PHP package dbrabon/file_adoption without Composer

On this page you can find all versions of the php package dbrabon/file_adoption. 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_adoption

File Adoption

File Adoption is a utility module for Drupal that scans the public files directory for files that are not tracked by Drupal's file_managed table. Identified "orphaned" files can be registered as managed file entities.

Installation

  1. Place the module in your Drupal installation, typically using Composer:

    or by copying the module into modules/custom.

  2. Enable the module from the Extend page or with Drush:

  3. Navigate to Administration → Reports → File Adoption (/admin/reports/file-adoption) to configure settings or review the most recent scan results. The page no longer runs a scan automatically.

Configuration

The configuration form offers the following options:

The configuration page also shows details gathered from the most recent scan:

Changes are stored in file_adoption.settings.

Cron Integration

Scanning occurs exclusively during cron runs. The Cron Frequency setting controls how often hook_cron() invokes the FileScanner service. Each run records its totals to state so the configuration page can report the last execution. When Enable Adoption is disabled the run also populates the file_adoption_orphans table with any discovered orphans. All orphans remain recorded in this table regardless of the item limit. When adoption is enabled, files are registered immediately and the table remains empty. Every cron run also rebuilds the file_adoption_index table, which lists all files the application can access for fast lookups.

Running Tests

These tests rely on Drupal's core testing environment. Make sure your Drupal installation includes the drupal/core-dev package. Tests should be executed from the Drupal project root so that Drupal's PHPUnit configuration is used.

From the module directory you can run:

The tests are located under the tests/ directory and include kernel tests for the FileScanner service and the configuration form.

Uninstall

Uninstalling the module removes all configuration and drops the file_adoption_orphans and file_adoption_index tables so no leftover data remains.


All versions of file_adoption with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
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 dbrabon/file_adoption contains the following files

Loading the files please wait ....