Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bankiru/composer-dev-branch-validator
Validates dev-branches in composer.json
https://github.com/bankiru/composer-dev-branch-validator
composer php tool
Last synced: about 1 month ago
JSON representation
Validates dev-branches in composer.json
- Host: GitHub
- URL: https://github.com/bankiru/composer-dev-branch-validator
- Owner: bankiru
- License: mit
- Created: 2016-01-14T13:15:01.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2022-11-03T11:58:51.000Z (about 2 years ago)
- Last Synced: 2023-08-21T08:09:23.346Z (over 1 year ago)
- Topics: composer, php, tool
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 11
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Composer json and lock validator
## Features
* Validates composer.json against having `dev-*` as dependency version
* `dev-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](https://github.com/bankiru/composer-dev-branch-validator/releases)
### Manual
```bash
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
```sh
# 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
```sh
Usage:
check [options] [--] []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
```