{"id":15023529,"url":"https://github.com/ghostff/dump5","last_synced_at":"2025-04-09T20:02:47.259Z","repository":{"id":62510576,"uuid":"60127746","full_name":"Ghostff/Dump5","owner":"Ghostff","description":"A pretty version of php(5+) var_dump ","archived":false,"fork":false,"pushed_at":"2024-05-23T17:39:16.000Z","size":1392,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T20:02:30.335Z","etag":null,"topics":["cgi","debug","dump","php","php-cli","php53","pretty-data-dump"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ghostff.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-31T22:23:51.000Z","updated_at":"2024-06-14T07:21:32.000Z","dependencies_parsed_at":"2025-02-15T18:42:24.981Z","dependency_job_id":null,"html_url":"https://github.com/Ghostff/Dump5","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghostff%2FDump5","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghostff%2FDump5/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghostff%2FDump5/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ghostff%2FDump5/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ghostff","download_url":"https://codeload.github.com/Ghostff/Dump5/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103865,"owners_count":21048245,"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":["cgi","debug","dump","php","php-cli","php53","pretty-data-dump"],"created_at":"2024-09-24T19:59:09.501Z","updated_at":"2025-04-09T20:02:47.213Z","avatar_url":"https://github.com/Ghostff.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pretty Data Dump\nA pretty version of php [var_dump](http://php.net/manual/en/function.var-dump.php). This class displays structured information about one or more expressions that includes its type and value.\n\n_Check out [Dump7](https://github.com/Ghostff/Dump7) for PHP 7+_\n\n# Installation   \nYou can download the  Latest [release version ](https://github.com/Ghostff/pretty_data_dump/releases/) as a standalone, alternatively you can use [Composer](https://getcomposer.org/) \n```json\ncomposer require ghostff/dump5\n```\n```json\n\"require\": {\n    \"ghostff/dump5\": \"^1.0\"\n}\n```    \n# Display Flags\nYou can simple hide or show some object attribute using a Doc block flag:\n\n|                               |                                                   |\n|-------------------------------|---------------------------------------------------|\n| `@dumpignore-inheritance`     | Hides inherited class properties.                 |\n| `@dumpignore-inherited-class` | Hides the class name from inherited properties.   |\n| `@dumpignore-private`         | Show all properties except the **private** ones.  |\n| `@dumpignore-protected`       | Show all properties except the **protected** ones.|\n| `@dumpignore-public`          | Show all properties except the **public** ones.   |\n| `@dumpignore`                 | Hide the property the Doc comment belongs to.     |\n```php\n/**\n* @dumpignore-inheritance\n* @dumpignore-inherited-class\n* @dumpignore-private\n* @dumpignore-public\n* @dumpignore-public\n*/\nClass Foo extends Bar {\n    /** @dumpignore */\n    public $big_object = null;\n}\n```\n\n# Usage\n```php\nclass FooBar\n{\n    private $inherited_int   = 123;\n    private $inherited_array = array('string');\n}\n\nclass Bar extends FooBar\n{\n    private $inherited_float = 0.22;\n    private $inherited_bool  = true;\n}\n\nclass Foo extends Bar\n{\n    private $string = 'string';\n    protected $int  = 10;\n    public $array   = array(\n        'foo'   =\u003e 'bar'\n    );\n    protected static $bool = false;\n}\n\n$string   = 'Foobar';\n$array    = array('foo', 'bar');\n$int      = 327626;\n$double   = 22.223;\n$null     = null;\n$bool     = true;\n$resource = fopen('LICENSE', 'r');\n$m        = microtime(true);\n\nnew Dump(new Foo, $string, $array, $int, $double, $null, $bool, array(\n    'foo' =\u003e 'bar',\n    'bar' =\u003e 'foo',\n    array(\n        'foo' =\u003e 'foobar',\n        'bar_foo',\n        2 =\u003e 'foo',\n        'foo' =\u003e array(\n            'barbar' =\u003e 55,\n            'foofoo' =\u003e false,\n            'foobar' =\u003e null,\n\n        )\n    )\n), $resource);\n\nnew Dump(1 == '1', 1 === '1');\n```\nReplacing predefined colors:\n```php\n# set($name, [$cgi_color, $cli_color]);\nDump::set('boolean', array('bb02ff', 'purple'));\n```\nCGI output:    \n\n![cgi screenshot](https://github.com/Ghostff/Dump5/blob/master/cgi.png)\n\nCLI Posix output:     \n    \n![cli screenshot](https://github.com/Ghostff/Dump5/blob/master/posix.png)\n\nWindows user who are using command line tools like `cmder` can use the `Dump::d` method:\n```php\nDump::d(new Foo, $string, $array, $int, $double, $null, $bool, array(\n    'foo' =\u003e 'bar',\n    'bar' =\u003e 'foo',\n    array(\n        'foo' =\u003e 'foobar',\n        'bar_foo',\n        2 =\u003e 'foo',\n        'foo' =\u003e array(\n            'barbar' =\u003e 55,\n            'foofoo' =\u003e false,\n            'foobar' =\u003e null,\n        )\n    )\n));\n```\nCLI Windows output:\n\n![cli screenshot](https://github.com/Ghostff/Dump5/blob/master/posixWin.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostff%2Fdump5","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fghostff%2Fdump5","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fghostff%2Fdump5/lists"}