commit 8238b9e5cccfda0d357611a9383a623f02a5fa26 Author: Marc Qualie Date: Wed Aug 7 18:33:05 2013 +0100 Initial Commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e890374 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +vendor +composer.lock +docs diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..2b10e57 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,16 @@ +language: php + +php: + - 5.3 + - 5.4 + - 5.5 + +before_script: + - composer self-update + - composer install + - pyrus install pear/PHP_CodeSniffer + - phpenv rehash + +script: + - phpcs --standard=psr2 src/ + - phpunit --coverage-text diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..f2aaec5 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,32 @@ +# Contributing + +Contributions are **welcome** and will be fully **credited**. + +We accept contributions via Pull Requests on [Github](https://github.com/php-loep/statsd). + + +## Pull Requests + +- **[PSR-2 Coding Standard](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)** - The easiest way to apply the conventions is to install [PHP Code Sniffer](http://pear.php.net/package/PHP_CodeSniffer). + +- **Add tests!** - Your patch won't be accepted if it doesn't have tests. + +- **Document any change in behaviour** - Make sure the README and any other relevant documentation are kept up-to-date. + +- **Consider our release cycle** - We try to follow semver. Randomly breaking public APIs is not an option. + +- **Create topic branches** - Don't ask us to pull from your master branch. + +- **One pull request per feature** - If you want to do more than one thing, send multiple pull requests. + +- **Send coherent history** - Make sure each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting. + + +## Running Tests + +``` bash +$ phpunit +``` + + +**Happy coding**! diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e8af9c5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2013 :author_name <:author_email> + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..c186dd9 --- /dev/null +++ b/README.md @@ -0,0 +1,54 @@ +# League Skeleton + +[![Build Status](https://travis-ci.org/php-loep/statsd.png?branch=master)](https://travis-ci.org/php-loep/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) + +**Replace Statsd with your own package name in the above URLs** + +:package_description + + +## Install + +Via Composer + +``` json +{ + "require": { + "league/:package_name": "~1.0" + } +} +``` + + +## Usage + +``` php +$skeleton = new League\Skeleton(); +echo $skeleton->echoPhrase('Hello, League!'); + +``` + + +## Testing + +``` bash +$ phpunit +``` + + +## Contributing + +Please see [CONTRIBUTING](https://github.com/php-loep/:package_name/blob/master/CONTRIBUTING.md) for details. + + +## Credits + +- [:author_name](https://github.com/:author_username) +- [All Contributors](https://github.com/php-loep/:package_name/contributors) + + +## License + +The MIT License (MIT). Please see [License File](https://github.com/php-loep/:package_name/blob/master/LICENSE) for more information. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..88e93ef --- /dev/null +++ b/composer.json @@ -0,0 +1,27 @@ +{ + "name": "league/:package_name", + "description": ":package_description", + "keywords": [ + "league", + "package" + ], + "homepage": "https://github.com/php-loep/:package_name", + "license": "MIT", + "authors": [ + { + "name": ":author_name", + "email": ":author_email", + "homepage": ":author_website", + "role": "Developer" + } + ], + "require-dev": { + "silex/silex": "~1.0" + }, + "autoload": { + "psr-0": { + "League": ["src", "tests"], + "Silex\\Provider": "src" + } + } +} diff --git a/phpunit.xml.dist b/phpunit.xml.dist new file mode 100644 index 0000000..0032740 --- /dev/null +++ b/phpunit.xml.dist @@ -0,0 +1,14 @@ + + + + + tests/League + + + + + src/Silex + src/League + + + diff --git a/src/League/Skeleton/SkeletonClass.php b/src/League/Skeleton/SkeletonClass.php new file mode 100644 index 0000000..1d6122a --- /dev/null +++ b/src/League/Skeleton/SkeletonClass.php @@ -0,0 +1,25 @@ +assertTrue(true); + } +}