darkalchemy/composer-permission

Composer script handling directories permissions by making them writable both

2.1.0 2023-03-05 23:17 UTC

This package is auto-updated.

Last update: 2024-04-06 02:02:03 UTC


README

Composer script handling directories permissions

Usage

Run the below command to install the plugin

composer require darkalchemy/composer-permission

And then put the below configuration in your composer.json file

{
    ...
    "scripts": {
        "post-install-cmd": [
            "Idnan\\ComposerPermission\\Handler::setPermissions"
        ]
    },
    "extra": {
        "dir_permissions": ["app/strorage:0777"]
    }
}

Where replace app/storage with the relative path for which permissions is to be changed and 0777 with the permission that you may want. You can pass any permission as long as it is accepted by chmod.

Contribution

  • Report issues
  • Open pull request with improvements
  • Features Suggestions
  • Reach out to me directly at idnan.se@gmail.com or Twitter URL

License

MIT © Adnan Ahmed