Skip to content

Commit

Permalink
Creating branch for 5.4-7.1 development
Browse files Browse the repository at this point in the history
  • Loading branch information
tolidano committed Jun 13, 2019
1 parent a708f1d commit 7a4adf7
Show file tree
Hide file tree
Showing 16 changed files with 186 additions and 1,145 deletions.
10 changes: 8 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
language: php
git:
depth: 5
quiet: true
before_script:
- composer install
- cd tests
php:
- 7.2
- 7.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
48 changes: 21 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# CommandoX
## PHP 7.2+ CLI Manager
## PHP 5.4-7.1 CLI Manager

[![Build Status](https://secure.travis-ci.org/tolidano/commandox.png?branch=master)](http://travis-ci.org/tolidano/commandox)

CommandoX is a PHP command line interface library that beautifies and simplifies writing PHP scripts intended for command line use.
This is a PHP 7.2+ port of Nate Good's abandoned Commando project available here: (https://www.github.com/nategood/commando)
This is a PHP 5.4-7.1 port of Nate Good's abandoned Commando project available here: (https://www.github.com/nategood/commando)

## Why?

Expand All @@ -13,7 +13,7 @@ PHP's [`getopt`](http://php.net/manual/en/function.getopt.php) is not a signific

## Installation

*CommandoX requires that you are running PHP 7.2 or higher.*
*CommandoX requires that you are running PHP 5.4 - PHP 7.1.*

CommandoX is [PSR-0](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md) compliant and can be installed using [Composer](http://getcomposer.org/). Add `tolidano/commandox` to your `composer.json`

Expand All @@ -34,7 +34,7 @@ If you're new to Composer...
Here is an example of a PHP CommandoX script that gives a decent tour of CommandoX's features:

``` php
<?php declare(strict_types = 1);
<?php

require_once 'vendor/autoload.php';

Expand Down Expand Up @@ -255,6 +255,7 @@ CommandoX encourages pull requests. When submitting a pull request:
- Run all unit tests from the tests directory via `phpunit` (install phpunit 8+ globally with composer)
- Include commenting where appropriate
- Add a descriptive PR message, preferably referencing a GitHub issue
- Only security and serious bug fixes will be accepted on the 5.4-7.1 version

## Inspiration / Original

Expand All @@ -266,29 +267,22 @@ Released under MIT license.

## Change Log

### v0.7.2 (Multiple Breaking Changes)

- Minimum version is now PHP 7.2
- Remove all PHP versions before 7.2 from travis CI yaml / testing
- Upgrade testing to PHPUnit 8 standards
- Add method parameter and return type hints

### v0.5.4 (Multiple Breaking Changes)

- Upgrade to PHP 5.4, support up to 7.1
- remove PHP 5.3 from travis CI yaml / testing
- add didShowHelp method
- remove all die/exit statements, return valid exit codes instead
- Port to new packagist under tolidano/commandox
- Port to new GitHub repository under tolidano/commandox
- Correct dedupeFlags bug (ensures each option/alias is seen exactly once)
- Use title in help and error messages when defined for anonymous arguments
- Constant refactoring
- Omit <argument> for increment options help text
- Fix non-empty getArgumentValues array
- Allow subclassing of Command
- Make tput OS-aware
- Help now works with -h as well (conflicts with existing -h flags)
### v0.5.0 (Multiple Breaking Changes)

- Upgrade to PHP 5.4, support up to 7.1
- remove PHP 5.3 from travis CI yaml / testing
- add didShowHelp method
- remove all die/exit statements, return valid exit codes instead
- Port to new packagist under tolidano/commandox
- Port to new GitHub repository under tolidano/commandox
- Correct dedupeFlags bug (ensures each option/alias is seen exactly once)
- Use title in help and error messages when defined for anonymous arguments
- Constant refactoring
- Omit `<argument>` for increment options help text
- Fix non-empty getArgumentValues array
- Allow subclassing of Command
- Make tput OS-aware
- Help now works with -h as well (conflicts with existing -h flags)

### v0.2.9

Expand Down
8 changes: 1 addition & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,9 @@
"email": "[email protected]"
}
],
"require-dev": {
"phpmd/phpmd": "2.*",
"sebastian/phpcpd": "4.*",
"squizlabs/php_codesniffer": "3.*"
},
"require": {
"php": ">=7.2",
"php": ">=5.4",
"kevinlebrun/colors.php": "1.0.*"

},
"autoload": {
"psr-0": {"CommandoX": "src/"}
Expand Down
Loading

0 comments on commit 7a4adf7

Please sign in to comment.