2017 © Pedro Peláez
 

project composer-dev-branch-validator

Validates dev-branches constraint in composer.json

image

bankiru/composer-dev-branch-validator

Validates dev-branches constraint in composer.json

  • Friday, January 13, 2017
  • by ekho
  • Repository
  • 8 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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, (*1)

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., (*2)

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

The Versions

13/01 2017

dev-master

9999999-dev

Validates dev-branches constraint in composer.json

  Sources   Download

MIT

The Requires

 

by Pavel Batanov

composer validator hooks branch checks constraints

13/01 2017

1.0-RC

1.0.0.0-RC

Validates dev-branches constraint in composer.json

  Sources   Download

MIT

The Requires

 

by Pavel Batanov

composer validator hooks branch checks constraints