Skip to content
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

deprecated constructor removed, psr-4 compliance added and some other improvements #10

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
35 changes: 32 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,38 @@
# dBug
- Updated for PSR-4 copmliance
- created composer package

## NEW
- Updated to version from August 6th, 2012 of Ospinto's code
- move to psr-4


## Usage

### Twig Filter - https://github.com/sunra/dbug-twig-extension

or

### Install via Composer - https://packagist.org/packages/sunra/dbug
Class will be autoloaded.


#### usage
``` php

new \Ospinto\dBug($myVariable);

```

#### Class arguments:

__construct ($var,$forceType="",$bCollapsed=false, $var_name='')

$var - variable to dump,
$bCollapsed - view collapsed
$var_name - name of variable - displayed in dump header

## How to use

include_once("dBug.php");
new dBug($myVariable);

More examples at http://dbug.ospinto.com/examples.php

Expand Down
26 changes: 26 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "sunra/dbug",
"version": "0.2.1",
"type": "library",
"description": "Most beautiful variable dump library for PHP (ColdFusion like style)",
"keywords": ["php","dump","debug"],
"homepage": "http://github.com/sunra/dBug.git",
"license": "GPL-3.0",
"authors": [
{
"name": "Kwaku Otchere",
"email": "[email protected]"
},
{
"name": "sunra",
"email": "[email protected]",
"homepage": "http://github.com/sunra"
}
],
"require": {
"php": ">=5.3.2"
},
"autoload": {
"psr-4": {"Ospinto\\": ""}
}
}
Loading