Download the PHP package freelock/composer-group-permissions without Composer
On this page you can find all versions of the php package freelock/composer-group-permissions. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package composer-group-permissions
Composer Group Permissions Plugin
A Composer plugin that automatically ensures group write permissions for all installed packages by temporarily setting umask to 0002 during install/update operations.
Problem
When using Composer in shared hosting environments or team development setups, newly created files often lack group write permissions (644 instead of 664), causing permission issues that require manual fixing.
Solution
This plugin automatically:
- Sets umask to 0002 before
composer install
andcomposer update
commands - Restores the original umask after operations complete
- Ensures all vendor files have group write permissions (664/775)
Installation
Global Installation (Recommended)
Install globally to affect all projects:
Per-Project Installation
Usage
Once installed, the plugin works automatically. You'll see verbose output when running composer with -v
:
How It Works
The plugin hooks into Composer's event system:
pre-install-cmd
/pre-update-cmd
: Sets umask to 0002post-install-cmd
/post-update-cmd
: Restores original umask
This ensures all files created during composer operations have group write permissions without affecting the rest of your system.
Requirements
- PHP 7.4 or higher
- Composer 2.0 or higher
Use Cases
- Shared hosting: Multiple users need write access to vendor files
- Team development: Developers sharing code on the same server
- Deployment scripts: Ensuring web server can write to vendor directories
- Docker containers: Maintaining proper permissions across user boundaries
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgments
Created by Freelock LLC to solve permission issues in shared Drupal and WordPress hosting environments.
All versions of composer-group-permissions with dependencies
composer-plugin-api Version ^2.0