{"id":18397296,"url":"https://github.com/php-ffi/var-dumper","last_synced_at":"2026-04-02T13:28:43.076Z","repository":{"id":65146482,"uuid":"583795610","full_name":"php-ffi/var-dumper","owner":"php-ffi","description":"FFI types dumper extension for symfony/var-dumper package","archived":false,"fork":false,"pushed_at":"2026-03-25T11:21:49.000Z","size":21,"stargazers_count":19,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-26T13:59:39.991Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/php-ffi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-12-31T00:15:18.000Z","updated_at":"2026-03-25T11:20:50.000Z","dependencies_parsed_at":"2025-04-07T04:33:12.652Z","dependency_job_id":"cca3b9b3-304b-4da7-8fc7-df2fa057b63c","html_url":"https://github.com/php-ffi/var-dumper","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/php-ffi/var-dumper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Fvar-dumper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Fvar-dumper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Fvar-dumper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Fvar-dumper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-ffi","download_url":"https://codeload.github.com/php-ffi/var-dumper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-ffi%2Fvar-dumper/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31307096,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2024-11-06T02:16:38.767Z","updated_at":"2026-04-02T13:28:43.062Z","avatar_url":"https://github.com/php-ffi.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VarDumper Extension For FFI Types\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/var-dumper\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/var-dumper/require/php?style=for-the-badge\" alt=\"PHP 8.1+\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/var-dumper\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/var-dumper/version?style=for-the-badge\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/var-dumper\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/var-dumper/v/unstable?style=for-the-badge\" alt=\"Latest Unstable Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/ffi/var-dumper\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/var-dumper/downloads?style=for-the-badge\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://raw.githubusercontent.com/php-ffi/var-dumper/master/LICENSE.md\"\u003e\u003cimg src=\"https://poser.pugx.org/ffi/var-dumper/license?style=for-the-badge\" alt=\"License MIT\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://github.com/php-ffi/var-dumper/actions\"\u003e\u003cimg src=\"https://github.com/php-ffi/var-dumper/workflows/build/badge.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis library allows you to dump FFI types using the functions `dd()` and `dump()`.\n\n## Requirements\n\n- PHP \u003e= 8.1\n\n## Installation\n\nLibrary is available as composer repository and can be installed using the\nfollowing command in a root of your project.\n\n```sh\n$ composer require ffi/var-dumper\n```\n\n## Usage\n\n```php\ndump(\\FFI::new('struct { float x }'));\n\n//\n// Expected Output:\n//\n// struct \u003canonymous\u003e {\n//   x\u003cfloat\u003e: 0.0\n// }\n//\n```\n\n### Unsafe Access\n\nSome values may contain data that will cause access errors when read. For \nexample, pointers leading to \"emptiness\".\n\nSuch data is marked as \"unsafe\" and only the first element is displayed. If you\nwant to display the values in full, you should use the `VAR_DUMPER_FFI_UNSAFE=1`\nenvironment variable.\n\n```php\n// Create char* with \"Hello World!\\0\" string.\n$string = \\FFI::new('char[13]');\n\\FFI::memcpy($string, 'Hello World!', 12);\n$pointer = \\FFI::cast('char*', $string);\n\n// Dump\ndump($pointer);\n\n// VAR_DUMPER_FFI_UNSAFE=0\n//\n// \u003e char* (unsafe access) {\n// \u003e  +0: \"H\"\n// \u003e }\n\n// VAR_DUMPER_FFI_UNSAFE=1\n//\n// \u003e b\"Hello World!\\x00\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ffi%2Fvar-dumper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-ffi%2Fvar-dumper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-ffi%2Fvar-dumper/lists"}