Skip to content

Commit 827d121

Browse files
authored
Merge pull request #1 from chadicus/master
Add library foundation
2 parents 68905f3 + 4fc34ca commit 827d121

18 files changed

Lines changed: 575 additions & 0 deletions

.coveralls.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
service_name: travis-ci
2+
coverage_clover: clover.xml
3+
json_path: coveralls-upload.json

.gitattributes

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Enforce Unix newlines
2+
* text=lf
3+
4+
# Exclude unused files
5+
# see: https://redd.it/2jzp6k
6+
/.github export-ignore
7+
/tests export-ignore
8+
.*.yml export-ignore
9+
.gitattributes export-ignore
10+
.gitignore export-ignore
11+
*.xml.dist export-ignore
12+
README.md export-ignore

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @subjective-php/maintainers

.github/CONTRIBUTING.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Contribution Guidelines
2+
You are welcome to report [issues](/../../issues) or submit [pull requests](/../../pulls). While the below guidelines are necessary to get code merged, you can submit pull requests that do not adhere to them and I will try to take care of them in my spare time. If you can make sure the build is passing 100%, that would be very useful.
3+
4+
I recommend including details of your particular usecase(s) with any issues or pull requests.
5+
6+
## Questions and Bug Reports
7+
Submit via [GitHub Issues](/../../issues).
8+
9+
## Pull Requests
10+
Code changes should be sent through [GitHub Pull Requests](/../../pulls). Before submitting the pull request, make sure that phpunit reports success:
11+
12+
## Pull Requests
13+
Code changes should be sent through [GitHub Pull Requests](/../../pulls). Before submitting the pull request, make sure that phpunit reports success:
14+
15+
### PHPUnit
16+
While the build does not strictly enforce 100% [PHPUnit](http://www.phpunit.de) code coverage, it will not allow coverage to drop below its current percentage.
17+
18+
```sh
19+
./vendor/bin/phpunit --coverage-html coverage
20+
```
21+
22+
### PHP CodeSniffer
23+
The build will also not allow any errors for the [coding standard](http://chadicus.github.io/coding-standard/)
24+
25+
```sh
26+
./vendor/bin/phpcs

.github/ISSUE_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Expected Behavior
2+
3+
## Actual Behavior
4+
5+
## Steps to reproduce the behavior
6+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Fixes # .
2+
3+
#### What does this PR do?
4+
5+
#### Checklist
6+
- [ ] Pull request contains a clear definition of changes
7+
- [ ] Tests (either unit, integration, or acceptance) written and passing
8+
- [ ] Relevant documentation produced and/or updated

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor/
2+
composer.lock
3+
clover.xml

.scrutinizer.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
filter:
2+
excluded_paths:
3+
- 'vendor/*'
4+
before_commands:
5+
- 'composer install --prefer-source'
6+
build:
7+
tests:
8+
override:
9+
- phpcs-run --standard=./vendor/chadicus/coding-standard/Chadicus/ruleset.xml
10+
tools:
11+
php_analyzer: true
12+
php_mess_detector: true
13+
sensiolabs_security_checker: true
14+
php_loc:
15+
excluded_dirs:
16+
- vendor
17+
php_pdepend: true
18+
php_sim: true
19+
build_failure_conditions:
20+
- 'elements.rating(< B).new.exists'
21+
- 'issues.label("coding-style").new.exists'
22+
- 'issues.severity(>= MAJOR).new.exists'
23+
- 'project.metric("scrutinizer.quality", < 6)'

.travis.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
language: php
2+
php:
3+
- 7.0
4+
- 7.1
5+
- 7.2
6+
- 7.3
7+
- nightly
8+
env:
9+
- PREFER_LOWEST="--prefer-lowest --prefer-stable"
10+
- PREFER_LOWEST=""
11+
matrix:
12+
fast_finish: true
13+
allow_failures:
14+
- php: nightly
15+
before_script:
16+
- composer update $PREFER_LOWEST
17+
script:
18+
- ./vendor/bin/phpunit
19+
after_success: ./vendor/bin/php-coveralls -v

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Chad Gray
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)