{"id":24716735,"url":"https://github.com/baylorrae/php-console","last_synced_at":"2025-10-09T13:31:50.018Z","repository":{"id":1522178,"uuid":"1782010","full_name":"BaylorRae/PHP-Console","owner":"BaylorRae","description":"A console script that I made for php debugging.","archived":false,"fork":false,"pushed_at":"2011-05-23T01:58:48.000Z","size":175,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-03-11T04:44:57.435Z","etag":null,"topics":[],"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/BaylorRae.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}},"created_at":"2011-05-21T22:04:40.000Z","updated_at":"2014-01-02T06:10:06.000Z","dependencies_parsed_at":"2022-08-16T13:35:16.994Z","dependency_job_id":null,"html_url":"https://github.com/BaylorRae/PHP-Console","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2FPHP-Console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2FPHP-Console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2FPHP-Console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BaylorRae%2FPHP-Console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BaylorRae","download_url":"https://codeload.github.com/BaylorRae/PHP-Console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235826632,"owners_count":19051122,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-01-27T09:14:04.024Z","updated_at":"2025-10-09T13:31:44.743Z","avatar_url":"https://github.com/BaylorRae.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## PHP Console\nThis is a small script that I wrote to make PHP debugging a little easier. I made it because my app was dealing with a lot of redirects, and I wanted to log information without it being erased after the redirect.\n\nHere's a [video](http://www.screenr.com/uUj) that explains how to use it.\n\nEverything is stored in a text file that gets created in the same directory as `console.php`.\n\n## Usage\nThe first thing to do is make sure `console.php` is executable. And then run it in Terminal.\n\n    chmod +x console.php\n    ./console.php\n    \nBy default `console.php` will reload the text file every 5 seconds. But you can change the time like this\n\n    ./console.php delay=1\n    \nThen from your file include `console.class.php` and add logs with the following syntax.\n\n```php\n\u003c?php\n    Console::log('This will get added!');\n\n    Console::log(array('This will be printed with print_r'));\n?\u003e\n```\n    \n## Configuration\nThe console class has two variables that can be changed. The first is for where `console.txt` is created. And the second is for the time format.\n\n```php\n\u003c?php\n    // needs to point to the location of console.php\n    Console::$filename = '../console.txt'; \n\n    Console::$time_format = 'F j, Y @ h:i:sa'; // default\n?\u003e\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaylorrae%2Fphp-console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbaylorrae%2Fphp-console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbaylorrae%2Fphp-console/lists"}