composer update

This commit is contained in:
Manish Verma
2018-12-05 10:50:52 +05:30
parent 9eabcacfa7
commit 4addd1e9c6
3328 changed files with 156676 additions and 138988 deletions

View File

@@ -1,15 +1,24 @@
language: php
php:
- 5.3.3
- 5.4
- 5.5
- 5.6
- 7.0
- 7.1
- 7.2
sudo: false
cache:
directories:
- vendor
- $HOME/.composer/cache
before_script:
- composer self-update
- composer install --no-interaction --prefer-source --dev
- composer install --no-interaction --prefer-source
script:
- ant phplint
- ant phpcs
- ant phpunit
- ant phpunit

View File

@@ -0,0 +1,27 @@
Copyright (c) 2014-2018, Jakub Onderka
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

View File

@@ -0,0 +1,10 @@
PHP Console Color
=================
[![Build Status](https://travis-ci.org/JakubOnderka/PHP-Console-Color.svg?branch=master)](https://travis-ci.org/JakubOnderka/PHP-Console-Color)
Simple library for creating colored console ouput.
See `example.php` how to use this library.
![Example from Windows 10](https://user-images.githubusercontent.com/89590/40762008-687f909a-646c-11e8-88d6-e268a064be4c.png)

View File

@@ -1,7 +1,6 @@
{
"name": "jakub-onderka/php-console-color",
"license": "BSD-2-Clause",
"version": "0.1",
"authors": [
{
"name": "Jakub Onderka",
@@ -9,16 +8,16 @@
}
],
"autoload": {
"psr-0": {"JakubOnderka\\PhpConsoleColor": "src/"}
"psr-4": {"JakubOnderka\\PhpConsoleColor\\": "src/"}
},
"require": {
"php": ">=5.3.2"
"php": ">=5.4.0"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
"jakub-onderka/php-parallel-lint": "0.*",
"phpunit/phpunit": "~4.3",
"jakub-onderka/php-parallel-lint": "1.0",
"jakub-onderka/php-var-dump-check": "0.*",
"squizlabs/php_codesniffer": "1.*",
"jakub-onderka/php-code-style": "1.0"
}
}
}

View File

@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="tests/bootstrap.php">
<phpunit
bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite>
<directory>tests/*</directory>
<directory suffix="Test.php">tests</directory>
</testsuite>
</testsuites>
@@ -12,4 +13,4 @@
<directory>vendor</directory>
</blacklist>
</filter>
</phpunit>
</phpunit>

View File

@@ -201,10 +201,15 @@ class ConsoleColor
public function isSupported()
{
if (DIRECTORY_SEPARATOR === '\\') {
return getenv('ANSICON') !== false || getenv('ConEmuANSI') === 'ON';
if (function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT)) {
return true;
} elseif (getenv('ANSICON') !== false || getenv('ConEmuANSI') === 'ON') {
return true;
}
return false;
} else {
return function_exists('posix_isatty') && @posix_isatty(STDOUT);
}
return function_exists('posix_isatty') && @posix_isatty(STDOUT);
}
/**
@@ -212,7 +217,11 @@ class ConsoleColor
*/
public function are256ColorsSupported()
{
return DIRECTORY_SEPARATOR === '/' && strpos(getenv('TERM'), '256color') !== false;
if (DIRECTORY_SEPARATOR === '\\') {
return function_exists('sapi_windows_vt100_support') && @sapi_windows_vt100_support(STDOUT);
} else {
return strpos(getenv('TERM'), '256color') !== false;
}
}
/**
@@ -225,8 +234,7 @@ class ConsoleColor
/**
* @param string $name
* @return string
* @throws InvalidStyleException
* @return string[]
*/
private function themeSequence($name)
{
@@ -240,7 +248,6 @@ class ConsoleColor
/**
* @param string $style
* @return string
* @throws InvalidStyleException
*/
private function styleSequence($style)
{
@@ -277,4 +284,4 @@ class ConsoleColor
{
return "\033[{$value}m";
}
}
}

View File

@@ -1,2 +0,0 @@
<?php
$loader = require_once __DIR__ . '/../vendor/autoload.php';