Skip to content

Commit df6b456

Browse files
committed
Merge portphp/boilerplate
1 parent 043baa8 commit df6b456

File tree

11 files changed

+155
-1339
lines changed

11 files changed

+155
-1339
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ insert_final_newline = true
88
indent_style = space
99
indent_size = 4
1010

11-
[*.yml]
11+
[*.yml*]
1212
indent_style = space
1313
indent_size = 2

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
spec/ export-ignore
2+
tests/ export-ignore
3+
.editorconfig export-ignore
4+
.gitattributes export-ignore
5+
.gitignore export-ignore
6+
.scrutinizer.yml export-ignore
7+
.travis.yml export-ignore
8+
CONTRIBUTING.md export-ignore
9+
phpspec.yml.dist export-ignore
10+
phpunit.xml.dist export-ignore

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
build/
21
vendor/
2+
composer.phar
33
composer.lock
44
phpspec.yml
5+
phpunit.xml

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
tools:
2-
external_code_coverage: true
2+
external_code_coverage: true

.travis.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
language: php
22

3-
sudo: false
4-
53
php:
64
- 5.4
75
- 5.5
@@ -16,17 +14,15 @@ matrix:
1614
include:
1715
- php: 5.4
1816
env:
19-
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest"
20-
- PHPUNIT_FLAGS="--coverage-text --coverage-clover=coverage.clover"
17+
- COMPOSER_FLAGS="--prefer-lowest --prefer-stable"
2118
- COVERAGE=true
2219

23-
cache:
24-
directories:
25-
- $HOME/.composer/cache
20+
before_script:
21+
- if [[ "$COVERAGE" != true ]]; then phpenv config-rm xdebug.ini; fi
2622

2723
install:
2824
- if [[ "$TRAVIS_PHP_VERSION" == "hhvm" ]]; then composer require mongofill/mongofill=dev-master --no-update; fi
29-
- travis_retry composer update --no-progress --no-plugins ${COMPOSER_FLAGS}
25+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
3026

3127
script: phpunit ${PHPUNIT_FLAGS}
3228

CONTRIBUTING.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
Contributing
2+
============
3+
4+
Thank you for contributing to this project!
5+
6+
Bug reports
7+
-----------
8+
9+
If you find a bug, please submit an issue. Try to be as detailed as possible
10+
in your problem description to help us fix the bug.
11+
12+
Feature requests
13+
----------------
14+
15+
If you wish to propose a feature, please submit an issue. Try to explain your
16+
use case as fully as possible to help us understand why you think the feature
17+
should be added.
18+
19+
Creating a pull request (PR)
20+
----------------------------
21+
22+
First [fork the repository](https://help.github.com/articles/fork-a-repo/) on
23+
GitHub.
24+
25+
Then clone your fork:
26+
27+
```bash
28+
$ git clone https://github.com/your-name/repo-name.git
29+
$ git checkout -b bug-or-feature-description
30+
```
31+
32+
And install the dependencies:
33+
34+
```bash
35+
$ composer install
36+
```
37+
38+
Write your code and add tests. Then run the tests:
39+
40+
```bash
41+
$ vendor/bin/phpunit
42+
```
43+
44+
Commit your changes and push them to GitHub:
45+
46+
```bash
47+
$ git commit -m "Fix nasty bug"
48+
$ git push -u origin bug-or-feature-description
49+
```
50+
51+
Then [create a pull request](https://help.github.com/articles/creating-a-pull-request/)
52+
on GitHub.
53+
54+
If you need to make some changes, commit and push them as you like. When asked
55+
to squash your commits, do so as follows:
56+
57+
```bash
58+
git rebase -i
59+
git push origin bug-or-feature-description -f
60+
```
61+
62+
Coding standard
63+
---------------
64+
65+
This project follows the [PSR-2](http://www.php-fig.org/psr/psr-2/) coding style.
66+
Please make sure your pull requests adhere to this standard.

LICENSE

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
Copyright (C) 2012-2014 David de Boer <[email protected]>
1+
The MIT License (MIT)
22

3-
Permission is hereby granted, free of charge, to any person obtaining a copy of
4-
this software and associated documentation files (the "Software"), to deal in
5-
the Software without restriction, including without limitation the rights to
6-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
7-
the Software, and to permit persons to whom the Software is furnished to do so,
8-
subject to the following conditions:
3+
Copyright (c) 2015 PortPHP
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:
911

1012
The above copyright notice and this permission notice shall be included in all
1113
copies or substantial portions of the Software.

0 commit comments

Comments
 (0)