Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/netherphp/composer-plugin
Plugin that adds some features to PHP's Composer package management.
https://github.com/netherphp/composer-plugin
Last synced: 12 days ago
JSON representation
Plugin that adds some features to PHP's Composer package management.
- Host: GitHub
- URL: https://github.com/netherphp/composer-plugin
- Owner: netherphp
- Created: 2021-05-19T21:02:52.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-05-24T17:59:17.000Z (over 3 years ago)
- Last Synced: 2024-11-06T01:49:02.408Z (2 months ago)
- Language: PHP
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nether Composer Plugin
Add features to Composer via a plugin.
# New Features
## Update Warning / Block
If **composer-update-warning.txt** exists in the project along side the **composer.json** file then any attempts to run `composer update` will fail, citing the contents of that text file.
bob@mcp:/opt/web-prod git:master $ composer update
[Exception]
Why are you doing this on production?
Use `composer install` instead.Handy because maybe you know of an incoming incompability that the version constraints are not going to juggle and you just not prepared to deal with it. Or maybe you keep typing `composer update` on production like an idiot instead of `composer install`.
You can just create **composer-update-warning.txt** in your project root with any text editor you want. Additionally there is a new Composer command for doing it.
composer set-update-warning "bruh you aint ready for this"
To allow updating again simply empty the file, delete the file, or use `composer set-update-warning` with no message and Composer will delete it for you. It is just a boring text file that way anyone who wants to see why there is an update warning without actually trying can also be informed.
Note, when using `set-update-warning` the quotes are totes required.
# Install
`composer require netherphp/composer-plugin`