https://github.com/idnan/composer-permission
Composer script handling directories permissions by making them writable
https://github.com/idnan/composer-permission
composer permission-handler
Last synced: 8 months ago
JSON representation
Composer script handling directories permissions by making them writable
- Host: GitHub
- URL: https://github.com/idnan/composer-permission
- Owner: Idnan
- Created: 2017-08-18T07:47:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-05T23:17:39.000Z (about 3 years ago)
- Last Synced: 2025-06-16T01:32:39.953Z (12 months ago)
- Topics: composer, permission-handler
- Language: PHP
- Homepage:
- Size: 9.77 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```json
{
...
"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](http://php.net/manual/en/function.chmod.php).
## Contribution
* Report issues
* Open pull request with improvements
* Features Suggestions
* Reach out to me directly at idnan.se@gmail.com or [](https://twitter.com/idnan_se)
## License
MIT © [Adnan Ahmed](mailto:idnan.se@gmail.com)