Skip to content

Composer script handling directories permissions by making them writable

Notifications You must be signed in to change notification settings

Idnan/composer-permission

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Composer Permission

Composer script handling directories permissions

Usage

Run the below command to install the plugin

composer require idnan/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

About

Composer script handling directories permissions by making them writable

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages