diff --git a/.gitignore b/.gitignore index e890374..751f6c5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ -vendor +build composer.lock docs +vendor \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index ef63536..fd8efe8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,11 +8,12 @@ php: - hhvm before_script: - - composer self-update - - composer install - - pyrus install pear/PHP_CodeSniffer - - phpenv rehash + - travis_retry composer self-update + - travis_retry composer install --no-interaction --prefer-source --dev script: - - phpcs --standard=psr2 src/ - - phpunit --coverage-text + - phpunit --coverage-text --coverage-clover=coverage.clover + +after_script: + - wget https://scrutinizer-ci.com/ocular.phar + - php ocular.phar code-coverage:upload --format=php-clover coverage.clover diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..afb6835 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +#Changelog +All Notable changes to `:package_name` will be documented in this file + +## NEXT - YYYY-MM-DD + +### Added +- Nothing + +### Deprecated +- Nothing + +### Fixed +- Nothing + +### Remove +- Nothing + +### Security +- Nothing \ No newline at end of file diff --git a/README.md b/README.md index f6b2b17..0e03797 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,16 @@ # League Skeleton -[![Build Status](https://travis-ci.org/thephpleague/statsd.png?branch=master)](https://travis-ci.org/thephpleague/statsd) -[![Total Downloads](https://poser.pugx.org/league/statsd/downloads.png)](https://packagist.org/packages/league/statsd) -[![Latest Stable Version](https://poser.pugx.org/league/statsd/v/stable.png)](https://packagist.org/packages/league/statsd) +[![Latest Version](https://img.shields.io/github/release/thephpleague/skeleton.svg?style=flat-square)](https://github.com/thephpleague/skeleton/releases) +[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) +[![Build Status](https://img.shields.io/travis/thephpleague/skeleton/master.svg?style=flat-square)](https://travis-ci.org/thephpleague/skeleton) +[![Coverage Status](https://img.shields.io/scrutinizer/coverage/g/thephpleague/skeleton.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/skeleton/code-structure) +[![Quality Score](https://img.shields.io/scrutinizer/g/thephpleague/skeleton.svg?style=flat-square)](https://scrutinizer-ci.com/g/thephpleague/skeleton) +[![Total Downloads](https://img.shields.io/packagist/dt/league/skeleton.svg?style=flat-square)](https://packagist.org/packages/league/skeleton) **Replace Skeleton with your own package name in the above URLs** :package_description - ## Install Via Composer @@ -21,7 +23,6 @@ Via Composer } ``` - ## Usage ``` php @@ -30,25 +31,21 @@ echo $skeleton->echoPhrase('Hello, League!'); ``` - ## Testing ``` bash $ phpunit ``` - ## Contributing Please see [CONTRIBUTING](https://github.com/thephpleague/:package_name/blob/master/CONTRIBUTING.md) for details. - ## Credits - [:author_name](https://github.com/:author_username) - [All Contributors](https://github.com/thephpleague/:package_name/contributors) - ## License The MIT License (MIT). Please see [License File](https://github.com/thephpleague/:package_name/blob/master/LICENSE) for more information. diff --git a/composer.json b/composer.json index 88e93ef..75f6f03 100644 --- a/composer.json +++ b/composer.json @@ -10,18 +10,30 @@ "authors": [ { "name": ":author_name", - "email": ":author_email", - "homepage": ":author_website", + "email": "author_email@example.com", + "homepage": "http://author-website.example.com", "role": "Developer" } ], "require-dev": { - "silex/silex": "~1.0" + "php" : ">=5.3.0" + }, + "require-dev": { + "phpunit/phpunit" : "4.*" }, "autoload": { - "psr-0": { - "League": ["src", "tests"], - "Silex\\Provider": "src" + "psr-4": { + "League\\Skeleton\\": "src" + } + }, + "autoload-dev": { + "psr-4": { + "League\\Skeleton\\Test\\": "tests" + } + }, + "extra": { + "branch-alias": { + "dev-master": "1.0-dev" } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 0032740..ef10f74 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,14 +1,29 @@ - + - tests/League + tests - src/Silex - src/League + src/ + + + + + + + diff --git a/scrutinizer.yml b/scrutinizer.yml new file mode 100644 index 0000000..af8cd38 --- /dev/null +++ b/scrutinizer.yml @@ -0,0 +1,34 @@ +filter: + excluded_paths: [tests/*] +checks: + php: + code_rating: true + remove_extra_empty_lines: true + remove_php_closing_tag: true + remove_trailing_whitespace: true + fix_use_statements: + remove_unused: true + preserve_multiple: false + preserve_blanklines: true + order_alphabetically: true + fix_php_opening_tag: true + fix_linefeed: true + fix_line_ending: true + fix_identation_4spaces: true + fix_doc_comments: true +tools: + external_code_coverage: + timeout: 600 + runs: 3 + php_code_coverage: false + php_code_sniffer: + config: + standard: PSR2 + filter: + paths: ['src'] + php_loc: + enabled: true + excluded_dirs: [vendor, tests] + php_cpd: + enabled: true + excluded_dirs: [vendor, tests] \ No newline at end of file diff --git a/src/Silex/Provider/SkeletonServiceProvider.php b/src/Silex/Provider/SkeletonServiceProvider.php deleted file mode 100644 index 7c68762..0000000 --- a/src/Silex/Provider/SkeletonServiceProvider.php +++ /dev/null @@ -1,32 +0,0 @@ -