bankiru / composer-dev-branch-validator
Validates dev-branches constraint in composer.json
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 11
Forks: 1
Open Issues: 0
Type:project
Requires
- composer/composer: ~1.0
- symfony/console: ^2.8 || ^3.0
This package is not auto-updated.
Last update: 2022-11-07 16:06:15 UTC
README
Features
- Validates composer.json against having
dev-*
as dependency versiondev-master
could is prohibited by default, but could be excluded
- Checks locker for presence (optional) and freshness
Initial purpose
- Various commit hooks
Installation
Easy
Grab latest phar from GitHub releases page
Manual
create-project bankiru/composer-dev-branch-validator ./checker/
cd checker/
composer install
php -dphar.readonly=0 bin/compiler.php
You will get latest build/checker.phar
ready for use.
Usage
# Implicit php checker.phar path/to/project # Excplicit php checker.phar path/to/project/composer.json # Workdir cd path/to/project php path/to/checker.phar
Options
Usage: check [options] [--] [<path>] Arguments: path Root package path [default: "./"] Options: -l, --no-lock-check Skip checking lock file -m, --ignore-missing-lock Skip checking lock file -t, --allow-dev-master Allow master-like branches (trunk, etc) -h, --help Display this help message -q, --quiet Do not output any message