An open API service indexing awesome lists of open source software.

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

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 [![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/idnan_se.svg?style=social&label=Follow%20%40idnan_se)](https://twitter.com/idnan_se)

## License

MIT © [Adnan Ahmed](mailto:idnan.se@gmail.com)