An open API service indexing awesome lists of open source software.

https://github.com/baylorrae/php-console

A console script that I made for php debugging.
https://github.com/baylorrae/php-console

Last synced: 9 months ago
JSON representation

A console script that I made for php debugging.

Awesome Lists containing this project

README

          

## PHP Console
This 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.

Here's a [video](http://www.screenr.com/uUj) that explains how to use it.

Everything is stored in a text file that gets created in the same directory as `console.php`.

## Usage
The first thing to do is make sure `console.php` is executable. And then run it in Terminal.

chmod +x console.php
./console.php

By default `console.php` will reload the text file every 5 seconds. But you can change the time like this

./console.php delay=1

Then from your file include `console.class.php` and add logs with the following syntax.

```php

```

## Configuration
The 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.

```php

```