File tree Expand file tree Collapse file tree 10 files changed +212
-7
lines changed Expand file tree Collapse file tree 10 files changed +212
-7
lines changed Original file line number Diff line number Diff line change 1+ ; This file is for unifying the coding style for different editors and IDEs.
2+ ; More information at http://editorconfig.org
3+
4+ root = true
5+
6+ [* ]
7+ charset = utf-8
8+ indent_size = 4
9+ indent_style = space
10+ end_of_line = lf
11+ insert_final_newline = true
12+ trim_trailing_whitespace = true
13+
14+ [* .md ]
15+ trim_trailing_whitespace = false
Original file line number Diff line number Diff line change 1+ # Path-based git attributes
2+ # https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+ # Ignore all test and documentation with "export-ignore".
5+ /.gitattributes export-ignore
6+ /.gitignore export-ignore
7+ /.travis.yml export-ignore
8+ /phpunit.xml.dist export-ignore
9+ /.scrutinizer.yml export-ignore
10+ /tests export-ignore
Original file line number Diff line number Diff line change 1- assets /*
2- ! assets /.gitignore
3- protected /runtime /*
4- ! protected /runtime /.gitignore
5- protected /data /* .db
6- themes /classic /views /
1+ .idea
2+ /vendor
3+ /composer.lock
4+ /coverage.clover
5+ /build
Original file line number Diff line number Diff line change 1+ filter :
2+ excluded_paths : [tests/*]
3+
4+ checks :
5+ php :
6+ remove_extra_empty_lines : true
7+ remove_php_closing_tag : true
8+ remove_trailing_whitespace : true
9+ fix_use_statements :
10+ remove_unused : true
11+ preserve_multiple : false
12+ preserve_blanklines : true
13+ order_alphabetically : true
14+ fix_php_opening_tag : true
15+ fix_linefeed : true
16+ fix_line_ending : true
17+ fix_identation_4spaces : true
18+ fix_doc_comments : true
19+
20+ tools :
21+ external_code_coverage :
22+ timeout : 600
23+ runs : 3
Original file line number Diff line number Diff line change 1+ language : php
2+
3+ php :
4+ - 5.4
5+ - 5.5
6+ - 5.6
7+ - 7.0
8+ - hhvm
9+
10+ matrix :
11+ allow_failures :
12+ - php : 7.0
13+ include :
14+ - php : 5.4
15+ env : ' COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
16+
17+ before_script :
18+ - travis_retry composer self-update
19+ - travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source
20+
21+ script :
22+ - phpunit --coverage-text --coverage-clover=coverage.clover
23+
24+ after_script :
25+ - php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
Original file line number Diff line number Diff line change 11# php-exec-command
2- Simple php command executor with param binding
2+
3+ [ ![ Build Status] ( https://travis-ci.org/pastuhov/php-exec-command.svg )] ( https://travis-ci.org/pastuhov/php-exec-command )
4+ [ ![ Scrutinizer Code Quality] ( https://scrutinizer-ci.com/g/pastuhov/php-exec-command/badges/quality-score.png?b=master )] ( https://scrutinizer-ci.com/g/pastuhov/php-exec-command/?branch=master )
5+ [ ![ Code Coverage] ( https://scrutinizer-ci.com/g/pastuhov/php-exec-command/badges/coverage.png?b=master )] ( https://scrutinizer-ci.com/g/pastuhov/php-exec-command/?branch=master )
6+ [ ![ Total Downloads] ( https://poser.pugx.org/pastuhov/php-exec-command/downloads )] ( https://packagist.org/packages/pastuhov/php-exec-command )
7+
8+ Simple php command executor with param binding.
9+
10+ ## Install
11+
12+ Via Composer
13+
14+ ``` bash
15+ $ composer require pastuhov/php-exec-command
16+ ```
17+
18+ ## Features
19+
20+ * light wight
21+ * param binding
22+
23+ ## Usage
24+
25+ ``` php
26+
27+ $output = Command::exec(
28+ 'echo {phrase}',
29+ [
30+ 'phrase' => 'hello'
31+ ]
32+ );
33+
34+ ```
35+
36+ ## Testing
37+
38+ ``` bash
39+ $ composer test
40+ ```
41+ or
42+ ``` bash
43+ $ phpunit
44+ ```
45+
46+ ## Security
47+
48+ If you discover any security related issues, please email kirill@pastukhov.su instead of using the issue tracker.
49+
50+ ## Credits
51+
52+ - [ Kirill Pastukhov] ( https://github.com/pastuhov )
53+ - [ All Contributors] ( ../../contributors )
54+
55+ ## License
56+
57+ GNU General Public License, version 2. Please see [ License File] ( LICENSE ) for more information.
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " pastuhov/php-exec-command" ,
3+ "description" : " Simple php command executor with param binding." ,
4+ "keywords" : [
5+ " exec" ,
6+ " command" ,
7+ " system"
8+ ],
9+ "homepage" : " https://github.com/pastuhov/php-exec-command" ,
10+ "license" : " GPL-2.0" ,
11+ "authors" : [
12+ {
13+ "name" : " Kirill Pastukhov" ,
14+ "email" : " kirill@pastukhov.su" ,
15+ "homepage" : " https://github.com/pastuhov/" ,
16+ "role" : " Developer"
17+ }
18+ ],
19+ "require" : {
20+ "php" : " >=5.3.0"
21+ },
22+ "require-dev" : {
23+ "phpunit/phpunit" : " 4.*" ,
24+ "scrutinizer/ocular" : " ~1.1"
25+ },
26+ "autoload" : {
27+ "psr-4" : {
28+ "pastuhov\\ Command\\ " : " src"
29+ }
30+ },
31+ "autoload-dev" : {
32+ "psr-4" : {
33+ "pastuhov\\ Command\\ Test\\ " : " tests"
34+ }
35+ },
36+ "scripts" : {
37+ "test" : " phpunit"
38+ },
39+ "extra" : {
40+ "branch-alias" : {
41+ "dev-master" : " 1.0-dev"
42+ }
43+ }
44+ }
Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <phpunit bootstrap =" vendor/autoload.php"
3+ backupGlobals =" false"
4+ backupStaticAttributes =" false"
5+ colors =" true"
6+ verbose =" true"
7+ convertErrorsToExceptions =" true"
8+ convertNoticesToExceptions =" true"
9+ convertWarningsToExceptions =" true"
10+ processIsolation =" false"
11+ stopOnFailure =" false" >
12+ <testsuites >
13+ <testsuite name =" FileStream Test Suite" >
14+ <directory >tests</directory >
15+ </testsuite >
16+ </testsuites >
17+ <filter >
18+ <whitelist >
19+ <directory suffix =" .php" >src/</directory >
20+ </whitelist >
21+ </filter >
22+ <logging >
23+ <log type =" tap" target =" build/report.tap" />
24+ <log type =" junit" target =" build/report.junit.xml" />
25+ <log type =" coverage-html" target =" build/coverage" charset =" UTF-8" yui =" true" highlight =" true" />
26+ <log type =" coverage-text" target =" build/coverage.txt" />
27+ <log type =" coverage-clover" target =" build/logs/clover.xml" />
28+ </logging >
29+ </phpunit >
Original file line number Diff line number Diff line change 1+ <?php
2+
Original file line number Diff line number Diff line change 1+ <?php
2+
3+
You can’t perform that action at this time.
0 commit comments