Download the PHP package niklan/composer-directories without Composer
On this page you can find all versions of the php package niklan/composer-directories. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download niklan/composer-directories
More information about niklan/composer-directories
Files in niklan/composer-directories
Package composer-directories
Short Description Composer plugin that automatically creates directories defined in your composer.json.
License MIT
Informations about the package composer-directories
Composer Directories
A Composer plugin that automatically creates directories and symlinks defined in your composer.json during install and update commands. Directories are always created before symlinks.
Installation
Usage
Add configuration to the extra section of your composer.json:
Both features work independently -- you can use directories, symlinks, or both.
Directories
- String entries use the default permission
0775(drwxrwxr-x), matching the Drupal default. - Object entries accept a
pathand an optionalpermissionsstring in octal format. - All paths are relative to the project root (where
composer.jsonis located).
Symlinks
- Keys are targets, values are link paths. Both are relative to the project root.
- If a symlink already exists and points to the correct target, it is left as-is. If it points elsewhere, it is replaced.
- If a non-symlink file/directory exists at the link path, it is skipped with a warning.
- On Windows, directory junctions are used instead of symlinks (no admin rights needed).
Verbose output
Run composer install -v to see skipped directories and symlinks that already exist:
Security
Paths that resolve outside the project root (e.g., ../../../etc) are rejected with a warning. This applies to both directories and symlinks (target and link).
Development
Requirements
- PHP 8.2+
- Composer 2.x
Setup
Linting
Auto-fix code style
Testing
Run everything
License
MIT
All versions of composer-directories with dependencies
composer-plugin-api Version ^2.0