Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add metadata files
- Loading branch information
0 parents
commit 5b0a598
Showing
10 changed files
with
191 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Path-based git attributes | ||
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html | ||
|
||
# Ignore all test and documentation with "export-ignore". | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.travis.yml export-ignore | ||
/phpunit.xml.dist export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/tests export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
composer.lock | ||
/vendor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
filter: | ||
excluded_paths: [tests/*] | ||
|
||
checks: | ||
php: | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
language: php | ||
|
||
php: | ||
- 7.0 | ||
- 7.1 | ||
|
||
before_script: | ||
- travis_retry composer update | ||
|
||
script: | ||
# check coding standard for our code | ||
- vendor/bin/phpcs -p --standard=psr2 src tests | ||
- vendor/bin/phpunit --coverage-clover=coverage.clover | ||
|
||
after_script: | ||
# get scrutinizer for coverage upload | ||
- | | ||
if [[ $TRAVIS_PHP_VERSION != '7.0' ]]; then | ||
php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Vojt臎ch Lacina <MoraviaD1@gmail.com> | ||
|
||
> 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# application | ||
|
||
[![Build Status][ico-travis]][link-travis] | ||
[![Quality Score][ico-code-quality]][link-code-quality] | ||
[![Coverage Status][ico-scrutinizer]][link-scrutinizer] | ||
[![Total Downloads][ico-downloads]][link-downloads] | ||
[![Latest Version on Packagist][ico-version]][link-packagist] | ||
|
||
This is where your description will be. Limit it to 2 paragraphs tops. | ||
|
||
## Install via Composer | ||
|
||
``` bash | ||
composer require 68publishers/application | ||
``` | ||
|
||
## Usage | ||
|
||
``` php | ||
// @todo | ||
``` | ||
|
||
## Rules for contributing | ||
|
||
- **1 PR per feature** | ||
- PR with tests are more likely to be merged | ||
- **tests and coding standard must pass** | ||
|
||
```bash | ||
vendor/bin/phpcs -p --standard=PSR2 src tests | ||
vendor/bin/phpunit | ||
``` | ||
|
||
**Happy coding**! | ||
|
||
[ico-version]: https://img.shields.io/packagist/v/68publishers/application.svg?style=flat-square | ||
[ico-travis]: https://img.shields.io/travis/68publishers/application/master.svg?style=flat-square | ||
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/68publishers/application.svg?style=flat-square | ||
[ico-code-quality]: https://img.shields.io/scrutinizer/g/68publishers/application.svg?style=flat-square | ||
[ico-downloads]: https://img.shields.io/packagist/dt/68publishers/application.svg?style=flat-square | ||
|
||
[link-packagist]: https://packagist.org/packages/68publishers/application | ||
[link-travis]: https://travis-ci.org/68publishers/application | ||
[link-scrutinizer]: https://scrutinizer-ci.com/g/68publishers/application/code-structure | ||
[link-code-quality]: https://scrutinizer-ci.com/g/68publishers/application | ||
[link-downloads]: https://packagist.org/packages/68publishers/application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "68publishers/application", | ||
"description": "Base extensions and components", | ||
"keywords": ["68publishers", "application"], | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Vojt臎ch Lacina", "email": "MoraviaD1@gmail.com" | ||
} | ||
], | ||
"require": { | ||
"php" : "~7.0" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit" : "~5.5", | ||
"squizlabs/php_codesniffer": "~2.7" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"68publishers\\application\\": "src" | ||
} | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"68publishers\\application\\": "tests" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit | ||
bootstrap="vendor/autoload.php" | ||
colors="true" | ||
> | ||
<testsuites> | ||
<testsuite> | ||
<directory>tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?php | ||
|
||
namespace SixtyEightPublishers\Application; | ||
|
||
class Environment | ||
{ | ||
|
||
public function __construct() | ||
{ | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
namespace SixtyEightPublishers; | ||
|
||
class ExampleTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* Test that true does in fact equal true | ||
*/ | ||
public function testTrueIsTrue() | ||
{ | ||
$this->assertTrue(true); | ||
} | ||
} |