Skip to content

Commit 42f6f10

Browse files
committed
Rename from xicrow/debug to xicrow/php-debug
1 parent 0dfa2c8 commit 42f6f10

18 files changed

+192
-192
lines changed

Debugger.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Closure {}
2727
2828
stdClass {}
2929
30-
Xicrow\Debug\Collection {
30+
Xicrow\PhpDebug\Collection {
3131
0 => 1,
3232
1 => 2,
3333
2 => 3

Memory.md

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,34 @@ See example in [demo/memory.php](demo/memory.php).
55

66
Example output:
77
```
8-
Total | 698.6719 KB
9-
|-- debug/demo/memory.php line 17 > Xicrow\Debug\Profiler::start() | 1.1016 KB
10-
|-- Loop level 1 #1 | 8.6484 KB
11-
|-- |-- Loop level 2 #1 | 3.4844 KB
12-
|-- |-- |-- Loop level 3 #1 | 896.0000 B
13-
|-- |-- |-- Loop level 3 #2 | 896.0000 B
14-
|-- |-- Loop level 2 #2 | 3.4375 KB
15-
|-- |-- |-- Loop level 3 #3 | 896.0000 B
16-
|-- |-- |-- Loop level 3 #4 | 928.0000 B
17-
|-- Loop level 1 #2 | 8.4609 KB
18-
|-- |-- Loop level 2 #3 | 3.4062 KB
19-
|-- |-- |-- Loop level 3 #5 | 896.0000 B
20-
|-- |-- |-- Loop level 3 #6 | 896.0000 B
21-
|-- |-- Loop level 2 #4 | 3.4062 KB
22-
|-- |-- |-- Loop level 3 #7 | 896.0000 B
23-
|-- |-- |-- Loop level 3 #8 | 896.0000 B
24-
|-- callback: time | 1008.0000 B
25-
|-- callback: strpos | 1.0234 KB
26-
|-- callback: array_sum | 1.5000 KB
27-
|-- callback: array_rand | 1.5078 KB
28-
|-- callback: min | 1.4922 KB
29-
|-- callback: max | 1.4922 KB
30-
|-- callback: Xicrow\Debug\Debugger::getDebugInformation | 1.5234 KB
31-
|-- callback: closure | 896.0000 B
32-
|-- 5 B | 5.0000 B
33-
|-- 5 KB | 5.0000 KB
34-
|-- 5 MB | 5.0000 MB
35-
|-- 5 GB | 5.0000 GB
36-
|-- 5 TB | 5.0000 TB
37-
|-- Random data generation: 0.62 MB | 635.8594 KB
8+
Total | 698.6719 KB
9+
|-- debug/demo/memory.php line 17 > Xicrow\PhpDebug\Profiler::start() | 1.1016 KB
10+
|-- Loop level 1 #1 | 8.6484 KB
11+
|-- |-- Loop level 2 #1 | 3.4844 KB
12+
|-- |-- |-- Loop level 3 #1 | 896.0000 B
13+
|-- |-- |-- Loop level 3 #2 | 896.0000 B
14+
|-- |-- Loop level 2 #2 | 3.4375 KB
15+
|-- |-- |-- Loop level 3 #3 | 896.0000 B
16+
|-- |-- |-- Loop level 3 #4 | 928.0000 B
17+
|-- Loop level 1 #2 | 8.4609 KB
18+
|-- |-- Loop level 2 #3 | 3.4062 KB
19+
|-- |-- |-- Loop level 3 #5 | 896.0000 B
20+
|-- |-- |-- Loop level 3 #6 | 896.0000 B
21+
|-- |-- Loop level 2 #4 | 3.4062 KB
22+
|-- |-- |-- Loop level 3 #7 | 896.0000 B
23+
|-- |-- |-- Loop level 3 #8 | 896.0000 B
24+
|-- callback: time | 1008.0000 B
25+
|-- callback: strpos | 1.0234 KB
26+
|-- callback: array_sum | 1.5000 KB
27+
|-- callback: array_rand | 1.5078 KB
28+
|-- callback: min | 1.4922 KB
29+
|-- callback: max | 1.4922 KB
30+
|-- callback: Xicrow\PhpDebug\Debugger::getDebugInformation | 1.5234 KB
31+
|-- callback: closure | 896.0000 B
32+
|-- 5 B | 5.0000 B
33+
|-- 5 KB | 5.0000 KB
34+
|-- 5 MB | 5.0000 MB
35+
|-- 5 GB | 5.0000 GB
36+
|-- 5 TB | 5.0000 TB
37+
|-- Random data generation: 0.62 MB | 635.8594 KB
3838
```

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# Debug
22
Debugging tools for PHP
33

4-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/xicrow/debug/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/xicrow/debug/?branch=master)
5-
[![Scrutinizer Code Coverage](https://scrutinizer-ci.com/g/xicrow/debug/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/xicrow/debug/?branch=master)
6-
[![Scrutinizer Build Status](https://scrutinizer-ci.com/g/xicrow/debug/badges/build.png?b=master)](https://scrutinizer-ci.com/g/xicrow/debug/build-status/master)
4+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/xicrow/php-debug/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/xicrow/php-debug/?branch=master)
5+
[![Scrutinizer Code Coverage](https://scrutinizer-ci.com/g/xicrow/php-debug/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/xicrow/php-debug/?branch=master)
6+
[![Scrutinizer Build Status](https://scrutinizer-ci.com/g/xicrow/php-debug/badges/build.png?b=master)](https://scrutinizer-ci.com/g/xicrow/php-debug/build-status/master)
77

8-
[![Packagist Latest Stable Version](https://poser.pugx.org/xicrow/debug/v/stable)](https://packagist.org/packages/xicrow/debug)
9-
[![Packagist Total Downloads](https://poser.pugx.org/xicrow/debug/downloads)](https://packagist.org/packages/xicrow/debug)
8+
[![Packagist Latest Stable Version](https://poser.pugx.org/xicrow/php-debug/v/stable)](https://packagist.org/packages/xicrow/php-debug)
9+
[![Packagist Total Downloads](https://poser.pugx.org/xicrow/php-debug/downloads)](https://packagist.org/packages/xicrow/php-debug)
1010

1111
## Installation
1212
The recommended way to install is through [Composer](https://getcomposer.org/).
1313
```JSON
1414
{
1515
"require": {
16-
"xicrow/debug": "~1.0"
16+
"xicrow/php-debug": "~1.0"
1717
}
1818
}
1919
```

Timer.md

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,33 @@ See example in [demo/timer.php](demo/timer.php).
55

66
Example output:
77
```
8-
Total | 2.3298 MS
9-
|-- debug/demo/timer.php line 17 > Xicrow\Debug\Profiler::start() | 0.0458 MS
10-
|-- Loop level 1 #1 | 0.4129 MS
11-
|-- |-- Loop level 2 #1 | 0.1552 MS
12-
|-- |-- |-- Loop level 3 #1 | 0.0281 MS
13-
|-- |-- |-- Loop level 3 #2 | 0.0381 MS
14-
|-- |-- Loop level 2 #2 | 0.1700 MS
15-
|-- |-- |-- Loop level 3 #3 | 0.0341 MS
16-
|-- |-- |-- Loop level 3 #4 | 0.0339 MS
17-
|-- Loop level 1 #2 | 0.4389 MS
18-
|-- |-- Loop level 2 #3 | 0.1659 MS
19-
|-- |-- |-- Loop level 3 #5 | 0.0348 MS
20-
|-- |-- |-- Loop level 3 #6 | 0.0360 MS
21-
|-- |-- Loop level 2 #4 | 0.1719 MS
22-
|-- |-- |-- Loop level 3 #7 | 0.0370 MS
23-
|-- |-- |-- Loop level 3 #8 | 0.0370 MS
24-
|-- callback: time | 0.0439 MS
25-
|-- callback: strpos | 0.0451 MS
26-
|-- callback: array_sum | 0.0448 MS
27-
|-- callback: array_rand | 0.0429 MS
28-
|-- callback: min | 0.0451 MS
29-
|-- callback: max | 0.0491 MS
30-
|-- callback: Xicrow\Debug\Debugger::getDebugInformation | 0.0930 MS
31-
|-- callback: closure | 0.0451 MS
32-
|-- 5 seconds | 5.0000 S
33-
|-- 5 minutes | 5.0000 M
34-
|-- 5 hours | 5.0000 H
35-
|-- 5 days | 5.0000 D
36-
|-- 5 weeks | 5.0000 W
8+
Total | 2.3298 MS
9+
|-- debug/demo/timer.php line 17 > Xicrow\PhpDebug\Profiler::start() | 0.0458 MS
10+
|-- Loop level 1 #1 | 0.4129 MS
11+
|-- |-- Loop level 2 #1 | 0.1552 MS
12+
|-- |-- |-- Loop level 3 #1 | 0.0281 MS
13+
|-- |-- |-- Loop level 3 #2 | 0.0381 MS
14+
|-- |-- Loop level 2 #2 | 0.1700 MS
15+
|-- |-- |-- Loop level 3 #3 | 0.0341 MS
16+
|-- |-- |-- Loop level 3 #4 | 0.0339 MS
17+
|-- Loop level 1 #2 | 0.4389 MS
18+
|-- |-- Loop level 2 #3 | 0.1659 MS
19+
|-- |-- |-- Loop level 3 #5 | 0.0348 MS
20+
|-- |-- |-- Loop level 3 #6 | 0.0360 MS
21+
|-- |-- Loop level 2 #4 | 0.1719 MS
22+
|-- |-- |-- Loop level 3 #7 | 0.0370 MS
23+
|-- |-- |-- Loop level 3 #8 | 0.0370 MS
24+
|-- callback: time | 0.0439 MS
25+
|-- callback: strpos | 0.0451 MS
26+
|-- callback: array_sum | 0.0448 MS
27+
|-- callback: array_rand | 0.0429 MS
28+
|-- callback: min | 0.0451 MS
29+
|-- callback: max | 0.0491 MS
30+
|-- callback: Xicrow\PhpDebug\Debugger::getDebugInformation | 0.0930 MS
31+
|-- callback: closure | 0.0451 MS
32+
|-- 5 seconds | 5.0000 S
33+
|-- 5 minutes | 5.0000 M
34+
|-- 5 hours | 5.0000 H
35+
|-- 5 days | 5.0000 D
36+
|-- 5 weeks | 5.0000 W
3737
```

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name" : "xicrow/debug",
2+
"name" : "xicrow/php-debug",
33
"description" : "Debugging tools for PHP",
44
"type" : "library",
55
"keywords" : [
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"support" : {
20-
"issues": "https://github.com/xicrow/debug/issues"
20+
"issues": "https://github.com/xicrow/php-debug/issues"
2121
},
2222
"require" : {
2323
"php": "^5.6"

demo/bootstrap.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22
require_once('../src/autoload.php');
33

4-
use \Xicrow\Debug\Debugger;
5-
use \Xicrow\Debug\Memory;
6-
use \Xicrow\Debug\Timer;
4+
use \Xicrow\PhpDebug\Debugger;
5+
use \Xicrow\PhpDebug\Memory;
6+
use \Xicrow\PhpDebug\Timer;
77

88
ini_set('error_reporting', E_ALL | E_STRICT);
99
ini_set('display_errors', 1);

demo/debugger.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once('bootstrap.php');
33

4-
use \Xicrow\Debug\Debugger;
4+
use \Xicrow\PhpDebug\Debugger;
55
?>
66
<html>
77
<head>
@@ -15,7 +15,7 @@
1515
return true;
1616
};
1717
$stdClass = (new stdClass());
18-
$collection = (new \Xicrow\Debug\Collection([1, 2, 3]));
18+
$collection = (new \Xicrow\PhpDebug\Collection([1, 2, 3]));
1919

2020
function foo() {
2121
Debugger::showTrace();
@@ -44,9 +44,9 @@ function bar() {
4444
Debugger::debug(Debugger::getCalledFrom());
4545
Debugger::debug(Debugger::getCalledFrom(1));
4646

47-
Debugger::reflectClass('\Xicrow\Debug\Collection');
48-
Debugger::reflectClassProperty('\Xicrow\Debug\Collection', 'items');
49-
Debugger::reflectClassMethod('\Xicrow\Debug\Collection', 'sort');
47+
Debugger::reflectClass('\Xicrow\PhpDebug\Collection');
48+
Debugger::reflectClassProperty('\Xicrow\PhpDebug\Collection', 'items');
49+
Debugger::reflectClassMethod('\Xicrow\PhpDebug\Collection', 'sort');
5050
?>
5151
</body>
5252
</html>

demo/memory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once('bootstrap.php');
33

4-
use \Xicrow\Debug\Memory;
4+
use \Xicrow\PhpDebug\Memory;
55
?>
66
<html>
77
<head>
@@ -38,7 +38,7 @@
3838
Memory::callback(null, 'array_rand', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
3939
Memory::callback(null, 'min', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
4040
Memory::callback(null, 'max', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
41-
Memory::callback(null, ['Xicrow\Debug\Debugger', 'getDebugInformation'], [1, 2, 3]);
41+
Memory::callback(null, ['Xicrow\PhpDebug\Debugger', 'getDebugInformation'], [1, 2, 3]);
4242
Memory::callback(null, function () {
4343
return false;
4444
});

demo/timer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
require_once('bootstrap.php');
33

4-
use \Xicrow\Debug\Timer;
4+
use \Xicrow\PhpDebug\Timer;
55
?>
66
<html>
77
<head>
@@ -38,7 +38,7 @@
3838
Timer::callback(null, 'array_rand', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
3939
Timer::callback(null, 'min', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
4040
Timer::callback(null, 'max', [1, 2, 3, 4, 5, 6, 7, 8, 9]);
41-
Timer::callback(null, ['Xicrow\Debug\Debugger', 'getDebugInformation'], [1, 2, 3]);
41+
Timer::callback(null, ['Xicrow\PhpDebug\Debugger', 'getDebugInformation'], [1, 2, 3]);
4242
Timer::callback(null, function () {
4343
return false;
4444
});

src/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace Xicrow\Debug;
2+
namespace Xicrow\PhpDebug;
33

44
/**
55
* Class Collection
66
*
7-
* @package Xicrow\Debug
7+
* @package Xicrow\PhpDebug
88
*/
99
class Collection implements \Iterator, \Countable {
1010
/**

src/Debugger.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace Xicrow\Debug;
2+
namespace Xicrow\PhpDebug;
33

44
/**
55
* Class Debugger
66
*
7-
* @package Xicrow\Debug
7+
* @package Xicrow\PhpDebug
88
*/
99
class Debugger {
1010
/**
@@ -276,7 +276,7 @@ public static function getDebugInformation($data, $indent = false) {
276276
$result = 'No method found supporting data type: ' . $dataType;
277277
if ($dataType == 'string') {
278278
$result = (string) '"' . $data . '"';
279-
} elseif (method_exists('\Xicrow\Debug\Debugger', $methodName)) {
279+
} elseif (method_exists('\Xicrow\PhpDebug\Debugger', $methodName)) {
280280
$result = (string) self::$methodName($data);
281281
}
282282

src/Memory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace Xicrow\Debug;
2+
namespace Xicrow\PhpDebug;
33

44
/**
55
* Class Memory
66
*
7-
* @package Xicrow\Debug
7+
* @package Xicrow\PhpDebug
88
* @codeCoverageIgnore
99
*/
1010
class Memory extends Profiler {

src/Profiler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace Xicrow\Debug;
2+
namespace Xicrow\PhpDebug;
33

44
/**
55
* Class Profiler
66
*
7-
* @package Xicrow\Debug
7+
* @package Xicrow\PhpDebug
88
*/
99
abstract class Profiler {
1010
/**

src/Timer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
2-
namespace Xicrow\Debug;
2+
namespace Xicrow\PhpDebug;
33

44
/**
55
* Class Timer
66
*
7-
* @package Xicrow\Debug
7+
* @package Xicrow\PhpDebug
88
* @codeCoverageIgnore
99
*/
1010
class Timer extends Profiler {

src/autoload.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
static $classes = null;
44
if ($classes === null) {
55
$classes = [
6-
'Xicrow\\Debug\\Collection' => '/Collection.php',
7-
'Xicrow\\Debug\\Debugger' => '/Debugger.php',
8-
'Xicrow\\Debug\\Memory' => '/Memory.php',
9-
'Xicrow\\Debug\\Profiler' => '/Profiler.php',
10-
'Xicrow\\Debug\\Timer' => '/Timer.php'
6+
'Xicrow\\PhpDebug\\Collection' => '/Collection.php',
7+
'Xicrow\\PhpDebug\\Debugger' => '/Debugger.php',
8+
'Xicrow\\PhpDebug\\Memory' => '/Memory.php',
9+
'Xicrow\\PhpDebug\\Profiler' => '/Profiler.php',
10+
'Xicrow\\PhpDebug\\Timer' => '/Timer.php'
1111
];
1212
}
1313
if (isset($classes[$class])) {

0 commit comments

Comments
 (0)