Skip to content

Fix sample code #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This library allows you to log variables to the Chrome console.
- PHP 5 or later

## License
This library is licensed under the Apache 2.0 license:
This library is licensed under the Apache 2.0 license:
http://www.apache.org/licenses/LICENSE-2.0

## Installation
Expand All @@ -16,12 +16,17 @@ http://www.apache.org/licenses/LICENSE-2.0
3. Put ChromePhp.php somewhere in your PHP include path
4. Log some data

```php
include 'ChromePhp.php';
ChromePhp::log('Hello console!');
ChromePhp::log($_SERVER);
ChromePhp::warn('something went wrong!');
```
### Without Composer

```php
include 'ChromePHP.php';

use ChromePHP\ChromePHP;

ChromePHP::log('Hello console!');
ChromePHP::log($_SERVER);
ChromePHP::warn('something went wrong!');
```

More information can be found here:
http://www.chromelogger.com