Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ checks:
fix_line_ending: true
fix_identation_4spaces: true
fix_doc_comments: true

tools:
external_code_coverage:
timeout: 600
runs: 3
22 changes: 8 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,21 @@
language: php

php:
- 5.5
- 5.6
- 7.0
- hhvm
- 7.1
- 7.2

# This triggers builds to run on the new TravisCI infrastructure.
# See: http://docs.travis-ci.com/user/workers/container-based-infrastructure/
sudo: false

matrix:
include:
- php: 5.5
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
env:
matrix:
- COMPOSER_FLAGS="--prefer-lowest"
- COMPOSER_FLAGS=""

before_script:
- travis_retry composer self-update
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-source

script:
- vendor/bin/phpcs --standard=psr2 src/
- vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover
- phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- if [[ $TRAVIS_PHP_VERSION != 'hhvm' && $TRAVIS_PHP_VERSION != '7.0' ]]; then php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover; fi
- php vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
38 changes: 12 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
# Label Printer

[![Latest Version on Packagist][ico-version]][link-packagist]
[![Software License][ico-license]](LICENSE.md)
[![Build Status][ico-travis]][link-travis]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
[![Quality Score][ico-code-quality]][link-code-quality]
[![Total Downloads][ico-downloads]][link-downloads]
[![Latest Version on Packagist](https://img.shields.io/packagist/v/RamyTalal/Label-Printer.svg?style=flat-square)](https://packagist.org/packages/RamyTalal/Label-Printer)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md)
[![Build Status](https://img.shields.io/travis/RamyTalal/Label-Printer/master.svg?style=flat-square)](https://travis-ci.org/RamyTalal/Label-Printer)
[![Quality Score](https://img.shields.io/scrutinizer/g/RamyTalal/Label-Printer.svg?style=flat-square)](https://scrutinizer-ci.com/g/RamyTalal/Label-Printer)
[![StyleCI](https://styleci.io/repos/55783562/shield?branch=master)](https://styleci.io/repos/55783562)
[![Total Downloads](https://img.shields.io/packagist/dt/RamyTalal/Label-Printer.svg?style=flat-square)](https://packagist.org/packages/RamyTalal/Label-Printer)


**This library is a WIP.**

Expand All @@ -16,7 +17,7 @@ Easily print labels with a Brother label printer. This library is tested with th
### Composer

``` bash
$ composer require RamyTalal/Label-Printer
composer require RamyTalal/Label-Printer
```

## Usage
Expand Down Expand Up @@ -67,7 +68,7 @@ fclose($stream);
## Testing

``` bash
$ composer test
composer test
```

## TODO
Expand All @@ -85,24 +86,9 @@ If you discover any security related issues, please email ramy@thinkquality.nl i

## Credits

- [Ramy Talal][link-author]
- [All Contributors][link-contributors]
- [Ramy Talal](https://github.com/RamyTalal)
- [All Contributors](../../contributors)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

[ico-version]: https://img.shields.io/packagist/v/RamyTalal/Label-Printer.svg?style=flat-square
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
[ico-travis]: https://img.shields.io/travis/RamyTalal/Label-Printer/master.svg?style=flat-square
[ico-scrutinizer]: https://img.shields.io/scrutinizer/coverage/g/RamyTalal/Label-Printer.svg?style=flat-square
[ico-code-quality]: https://img.shields.io/scrutinizer/g/RamyTalal/Label-Printer.svg?style=flat-square
[ico-downloads]: https://img.shields.io/packagist/dt/RamyTalal/Label-Printer.svg?style=flat-square

[link-packagist]: https://packagist.org/packages/RamyTalal/Label-Printer
[link-travis]: https://travis-ci.org/RamyTalal/Label-Printer
[link-scrutinizer]: https://scrutinizer-ci.com/g/RamyTalal/Label-Printer/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/RamyTalal/Label-Printer
[link-downloads]: https://packagist.org/packages/RamyTalal/Label-Printer
[link-author]: https://github.com/RamyTalal
[link-contributors]: ../../contributors
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
19 changes: 12 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,30 @@
{
"name": "Ramy Talal",
"email": "ramy@thinkquality.nl",
"homepage": "https://thinkquality.nl"
"homepage": "https://thinkquality.nl",
"role": "Developer"
}
],
"require": {
"php": ">=5.5.9"
"php": "^7.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0",
"squizlabs/php_codesniffer": "~2.3",
"scrutinizer/ocular": "~1.1"
"phpunit/phpunit": "6.*"
},
"autoload": {
"psr-4": {
"Talal\\LabelPrinter\\": "src/"
"Talal\\LabelPrinter\\": "src"
}
},
"autoload-dev": {
"psr-4": {
"Talal\\LabelPrinter\\": "src/tests/"
"Talal\\LabelPrinter\\": "tests"
}
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"config": {
"sort-packages": true
}
}
Loading