Skip to content

Commit d6bec32

Browse files
authored
Update README and configure composer (#21)
* Remove license section from README * Change badges style * Update composer.json * Configure Travis to test lib on PHP 7.3
1 parent af926a8 commit d6bec32

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ matrix:
99
env:
1010
- EXECUTE_COVERAGE=true
1111
- php: 7.2
12+
- php: 7.3
1213

1314
notifications:
1415
email: false
@@ -27,4 +28,4 @@ script:
2728
- if [[ $EXECUTE_COVERAGE != 'true' ]]; then ./vendor/bin/phpunit ; fi
2829

2930
after_script:
30-
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/ocular code-coverage:upload --format=php-clover ./build/logs/clover.xml; fi
31+
- if [[ $EXECUTE_COVERAGE == 'true' ]]; then ./vendor/bin/ocular code-coverage:upload --format=clover ./build/logs/clover.xml; fi

README.md

Lines changed: 16 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
# Date Range
22

3-
[![Software License][ico-license]][link-license]
4-
[![Latest Version on Packagist][ico-version]][link-packagist]
53
[![Build Status][ico-travis]][link-travis]
6-
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
4+
[![Code Coverage][ico-scrutinizer]][link-scrutinizer]
75
[![Quality Score][ico-code-quality]][link-code-quality]
6+
[![GitHub issues][ico-issues]][link-issues]
7+
8+
[![Software License][ico-license]][link-license]
9+
[![Latest Version on Packagist][ico-version]][link-packagist]
10+
[![PHP Version][ico-php-version]][link-github]
811

912
Implementation of the **Date Range** missing in PHP.
1013

@@ -147,34 +150,24 @@ class ReportCalculator
147150
## Testing
148151

149152
```bash
150-
# install required files
151-
composer self-update
152-
composer install
153-
154-
# run the test (from project root)
155153
phpunit
156154
```
157155

158156
## Contributing
159157

160-
Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.
161-
162-
## Credits
163-
164-
- [Veaceslav Medvedev](https://github.com/slavcodev)
165-
- [All Contributors](../../contributors)
166-
167-
## License
168-
169-
The BSD 2-Clause License. Please see [LICENSE][link-license] for more information.
158+
Please see [CONTRIBUTING](CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for more details.
170159

171-
[ico-version]: https://img.shields.io/packagist/v/zeeproject/date-range.svg?style=flat-square
172-
[ico-license]: https://img.shields.io/badge/License-BSD%202--Clause-blue.svg?style=flat-square
173-
[ico-travis]: https://img.shields.io/travis/zee/date-range/master.svg?style=flat-square
174-
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/zee/date-range.svg?style=flat-square
175-
[ico-code-quality]: https://img.shields.io/scrutinizer/g/zee/date-range.svg?style=flat-square
160+
[ico-version]: https://img.shields.io/packagist/v/zeeproject/date-range.svg?style=for-the-badge&label=Latest
161+
[ico-php-version]: https://img.shields.io/packagist/php-v/zeeproject/date-range.svg?style=for-the-badge
162+
[ico-license]: https://img.shields.io/badge/License-BSD%202--Clause-blue.svg?style=for-the-badge
163+
[ico-issues]: https://img.shields.io/github/issues/zee/date-range.svg?style=for-the-badge&logo=github
164+
[ico-travis]: https://img.shields.io/travis/zee/date-range.svg?style=for-the-badge&logo=travis
165+
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/zee/date-range.svg?style=for-the-badge&logo=scrutinizer
166+
[ico-code-quality]: https://img.shields.io/scrutinizer/g/zee/date-range.svg?style=for-the-badge&logo=scrutinizer
176167

177168
[link-packagist]: https://packagist.org/packages/zeeproject/date-range
169+
[link-github]: https://github.com/zee/date-range
170+
[link-issues]: https://github.com/zee/date-range/issues
178171
[link-license]: LICENSE
179172
[link-travis]: https://travis-ci.org/zee/date-range
180173
[link-scrutinizer]: https://scrutinizer-ci.com/g/zee/date-range/code-structure

build/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

composer.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,24 @@
22
"name": "zeeproject/date-range",
33
"description": "Date range implementation",
44
"license": "BSD-2-Clause",
5+
"homepage": "https://github.com/zee/date-range",
56
"keywords": [
67
"date range"
78
],
89
"authors": [
910
{
1011
"name": "Veaceslav Medvedev",
11-
"email": "[email protected]"
12+
"email": "[email protected]",
13+
"homepage": "https://github.com/slavcodev"
14+
},
15+
{
16+
"name": "All awesome contributors",
17+
"homepage": "https://github.com/zee/exceptions/graphs/contributors"
1218
}
1319
],
20+
"config": {
21+
"sort-packages": true
22+
},
1423
"require": {
1524
"php": "^7.1",
1625
"ext-json": "*"

0 commit comments

Comments
 (0)