mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-17 13:28:35 +01:00
updated readme [ci skip]
This commit is contained in:
parent
37dccc40da
commit
70bd3f6d29
18
README.md
18
README.md
@ -9,7 +9,7 @@ No more `var_dump()` in your code!
|
||||
|
||||
**Features:**
|
||||
|
||||
- Generic debug bar with no other dependencies
|
||||
- Generic debug bar
|
||||
- Easy to integrate with any project
|
||||
- Clean, fast and easy to use interface
|
||||
- Handles AJAX request
|
||||
@ -35,7 +35,7 @@ examples and [phpdebugbar.com](http://phpdebugbar.com) for a live example.
|
||||
|
||||
## Installation
|
||||
|
||||
The easiest way to install DebugBar is using [Composer](https://github.com/composer/composer)
|
||||
The best way to install DebugBar is using [Composer](http://getcomposer.org)
|
||||
with the following requirement:
|
||||
|
||||
{
|
||||
@ -44,20 +44,8 @@ with the following requirement:
|
||||
}
|
||||
}
|
||||
|
||||
Alternatively, you can [download the archive](https://github.com/maximebf/php-debugbar/zipball/master)
|
||||
and add the src/ folder to PHP's include path:
|
||||
If you are cloning the repository, you'll need to run `composer install`.
|
||||
|
||||
set_include_path('/path/to/src' . PATH_SEPARATOR . get_include_path());
|
||||
|
||||
DebugBar does not provide an autoloader but follows the [PSR-0 convention](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md).
|
||||
You can use the following snippet to autoload DebugBar classes:
|
||||
|
||||
spl_autoload_register(function($className) {
|
||||
if (substr($className, 0, 8) === 'DebugBar') {
|
||||
$filename = str_replace('\\', DIRECTORY_SEPARATOR, trim($className, '\\')) . '.php';
|
||||
require_once $filename;
|
||||
}
|
||||
});
|
||||
|
||||
## Quick start
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user