{"id":36980033,"url":"https://github.com/marcuwynu23/php-inspector","last_synced_at":"2026-01-13T22:49:39.005Z","repository":{"id":322401848,"uuid":"1089402062","full_name":"marcuwynu23/php-inspector","owner":"marcuwynu23","description":"A PHP-friendly tool to inspect and log PHP classes and objects with reflection.","archived":false,"fork":false,"pushed_at":"2025-11-04T10:04:10.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-04T10:07:09.902Z","etag":null,"topics":["console-log","debugging","inspection","laravel","logging","php","terminal","tool"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcuwynu23.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T09:45:24.000Z","updated_at":"2025-11-04T10:04:14.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/marcuwynu23/php-inspector","commit_stats":null,"previous_names":["marcuwynu23/php-inspector"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/marcuwynu23/php-inspector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fphp-inspector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fphp-inspector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fphp-inspector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fphp-inspector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcuwynu23","download_url":"https://codeload.github.com/marcuwynu23/php-inspector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcuwynu23%2Fphp-inspector/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28403750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["console-log","debugging","inspection","laravel","logging","php","terminal","tool"],"created_at":"2026-01-13T22:49:38.918Z","updated_at":"2026-01-13T22:49:38.992Z","avatar_url":"https://github.com/marcuwynu23.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003e PHP Inspector \u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/stars/marcuwynu23/php-inspector.svg\" alt=\"Stars Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/forks/marcuwynu23/php-inspector.svg\" alt=\"Forks Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/issues/marcuwynu23/php-inspector.svg\" alt=\"Issues Badge\"/\u003e\n  \u003cimg src=\"https://img.shields.io/github/license/marcuwynu23/php-inspector.svg\" alt=\"License Badge\"/\u003e\n\u003c/p\u003e\n\nA PHP-friendly developer tool for logging and inspecting PHP classes, objects, and data structures.\n\n---\n\n## Features\n\n- Log detailed information about a class or object:\n  - Class name and parent\n  - Interfaces and traits\n  - Constants, methods, and properties\n- Pretty-printed JSON output for easier debugging\n- Can handle objects, classes, arrays, and primitives\n- Simple integration with Laravel's logging system (or standard output)\n\n---\n\n## Installation\n\nInstall via Composer:\n\n```bash\ncomposer require marcuwynu23/php-inspector\n```\n\nFor developrnent and testing:\n\n```bash\ncomposer require --dev phpunit/phpunit\n```\n\n### Usage\n\nLog a Class\n\n```php\nuse Marcuwynu23\\PHPInspector\\PHPInspector;\n\nPHPInspector::log(\\DateTime::class);\n\n```\n\nLog an Object\n\n```php\n$obj = new stdClass();\n$obj-\u003efoo = 'bar';\n\nPHPInspector::log($obj);\n\n```\n\nLog an Array or Primitive\n\n```php\nPHPInspector::log(['foo' =\u003e 'bar']);\nPHPInspector::log('Hello World');\n\n```\n\nAll output will be printed in JSON format to stdout (or Laravel log if used in Laravel).\n\n### Running Tests\n\nThis library uses PHPUnit 10 for testing.\nRun tests using Composer.\n\n```bash\ncomposer test\n\n```\n\nThis will execute:\n\n```\nvendor\\bin\\phpunit.bat --colors=always\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Fphp-inspector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcuwynu23%2Fphp-inspector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcuwynu23%2Fphp-inspector/lists"}