Skip to content

Commit 2cff378

Browse files
Initial commit.
0 parents  commit 2cff378

12 files changed

Lines changed: 1677 additions & 0 deletions

.gitignore

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

.scrutinizer.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
filter:
2+
excluded_paths:
3+
- 'vendor/*'
4+
- 'src/helpers.php'
5+
before_commands:
6+
- 'composer install --prefer-source'
7+
tools:
8+
external_code_coverage: true
9+
build:
10+
nodes:
11+
analysis:
12+
project_setup:
13+
override:
14+
- 'true'
15+
tests:
16+
override:
17+
- php-scrutinizer-run
18+
build_failure_conditions:
19+
- 'issues.severity(= CRITICAL).exists'
20+
- 'issues.severity(= CRITICAL).new.exists'
21+
- 'project.metric("scrutinizer.test_coverage", < 0.90)'
22+
- 'project.metric("scrutinizer.quality", < 9)'
23+
checks:
24+
php:
25+
fix_php_opening_tag: false
26+
remove_php_closing_tag: false
27+
no_mixed_inline_html: false
28+
require_braces_around_control_structures: false
29+
psr2_control_structure_declaration: true
30+
avoid_superglobals: true
31+
security_vulnerabilities: true
32+
no_exit: false
33+
coding_style:
34+
php: true
35+
filter: { }

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
language: php
2+
php:
3+
- 7.1
4+
- 7.2
5+
- nightly
6+
matrix:
7+
fast_finish: true
8+
allow_failures:
9+
- php: nightly
10+
install:
11+
- composer install --no-interaction --prefer-source
12+
script:
13+
- composer test
14+
after_success:
15+
- wget https://scrutinizer-ci.com/ocular.phar
16+
- php ocular.phar code-coverage:upload --format=php-clover ./clover.xml

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Guillermo A. Fisher
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.

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# PHP Debug Library
2+
[![Travis](https://img.shields.io/travis/guillermoandrae/php-debug.svg?style=flat-square)](https://travis-ci.org/guillermoandrae/php-debug) [![Scrutinizer](https://img.shields.io/scrutinizer/g/guillermoandrae/php-debug.svg?style=flat-square)](https://scrutinizer-ci.com/g/guillermoandrae/php-debug/) [![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/guillermoandrae/php-debug.svg?style=flat-square)](https://scrutinizer-ci.com/g/guillermoandrae/php-debug/) [![approval](https://img.shields.io/badge/approved%20by-your%20mom-green.svg?style=flat-square)](https://guillermoandraefisher.com)
3+
4+
You should use [Xdebug](https://xdebug.org/). And if you just wanna do some simple dumping, use this [Laravel](https://laravel.com/) inspired library.
5+
6+
## Installation
7+
Do this, then relax:
8+
```
9+
composer require guillermoandrae/php-debug
10+
11+
```

composer.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "guillermoandrae/php-debug",
3+
"description": "PHP Debug library",
4+
"license": "MIT",
5+
"authors": [
6+
{
7+
"name": "Guillermo A. Fisher",
8+
"email": "me@guillermoandraefisher.com"
9+
}
10+
],
11+
"require": {
12+
"php": "^7.1"
13+
},
14+
"autoload": {
15+
"files": ["src/helpers.php"],
16+
"psr-4": {
17+
"Guillermoandrae\\": "src/"
18+
}
19+
},
20+
"require-dev": {
21+
"phpunit/phpunit": "^7.1",
22+
"squizlabs/php_codesniffer": "^3.2"
23+
},
24+
"autoload-dev": {
25+
"psr-4": {
26+
"Test\\": "tests/"
27+
}
28+
},
29+
"scripts": {
30+
"check-style": [
31+
"phpcbf --standard=PSR2 --extensions=php src tests",
32+
"phpcs --standard=PSR2 --extensions=php src tests"
33+
],
34+
"check-coverage": [
35+
"phpunit --coverage-text --coverage-clover=./clover.xml"
36+
],
37+
"test": [
38+
"@check-style",
39+
"@check-coverage"
40+
]
41+
}
42+
}

0 commit comments

Comments
 (0)