This commit is contained in:
Kavalar 2025-02-04 11:18:46 +03:00
commit e883a72ac3
3 changed files with 40 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.idea
vendor

18
composer.json Normal file
View File

@ -0,0 +1,18 @@
{
"name": "itguild/debug",
"description": "Debug library",
"type": "library",
"autoload": {
"psr-4": {
"Itguild\\Debug\\": "src/"
}
},
"authors": [
{
"name": "Kavalar",
"email": "apuc06@mail.ru"
}
],
"minimum-stability": "dev",
"require": {}
}

20
src/Debug.php Executable file
View File

@ -0,0 +1,20 @@
<?php
namespace Itguild\Debug;
class Debug
{
public static function prn($content)
{
echo '<pre style="background: lightgray; border: 1px solid black; padding: 2px">';
print_r($content);
echo '</pre>';
}
public static function dd($content)
{
echo '<pre style="background: lightgray; border: 1px solid black; padding: 2px">';
print_r($content);
echo '</pre>';
die();
}
}