PHPackages                             ffi/var-dumper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ffi/var-dumper

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ffi/var-dumper
==============

List of symfony/var-dumper casters with FFI support

1.0.3(3mo ago)2011.3k↑108.3%14MITPHPPHP ^8.1CI failing

Since Dec 31Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/php-ffi/var-dumper)[ Packagist](https://packagist.org/packages/ffi/var-dumper)[ RSS](/packages/ffi-var-dumper/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (4)Dependencies (8)Versions (5)Used By (4)

VarDumper Extension For FFI Types
=================================

[](#vardumper-extension-for-ffi-types)

 [![PHP 8.1+](https://camo.githubusercontent.com/93b537a7bb458964427ce19647fa7660a1b1ee355d6f56303b94ba556eb6fb7a/68747470733a2f2f706f7365722e707567782e6f72672f6666692f7661722d64756d7065722f726571756972652f7068703f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/var-dumper) [![Latest Stable Version](https://camo.githubusercontent.com/7d2376bae03df6b689d5c901d3504e189cc738ef2b2dcd2e6617ac298bba713e/68747470733a2f2f706f7365722e707567782e6f72672f6666692f7661722d64756d7065722f76657273696f6e3f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/var-dumper) [![Latest Unstable Version](https://camo.githubusercontent.com/5ce151bb43d2ef5a260ffc5680aaef8ea62465588fb0a778464ab1722417076d/68747470733a2f2f706f7365722e707567782e6f72672f6666692f7661722d64756d7065722f762f756e737461626c653f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/var-dumper) [![Total Downloads](https://camo.githubusercontent.com/417e84c4bd3d641591e02c923ea6adc75ca2c8ce6553914b340f55550134d1f6/68747470733a2f2f706f7365722e707567782e6f72672f6666692f7661722d64756d7065722f646f776e6c6f6164733f7374796c653d666f722d7468652d6261646765)](https://packagist.org/packages/ffi/var-dumper) [![License MIT](https://camo.githubusercontent.com/7162123d9e9001c6fe13336ff10b272390e34c31469bb5be535833536dbd9278/68747470733a2f2f706f7365722e707567782e6f72672f6666692f7661722d64756d7065722f6c6963656e73653f7374796c653d666f722d7468652d6261646765)](https://raw.githubusercontent.com/php-ffi/var-dumper/master/LICENSE.md)

 [![](https://github.com/php-ffi/var-dumper/workflows/build/badge.svg)](https://github.com/php-ffi/var-dumper/actions)

This library allows you to dump FFI types using the functions `dd()` and `dump()`.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1

Installation
------------

[](#installation)

Library is available as composer repository and can be installed using the following command in a root of your project.

```
$ composer require ffi/var-dumper
```

Usage
-----

[](#usage)

```
dump(\FFI::new('struct { float x }'));

//
// Expected Output:
//
// struct  {
//   x: 0.0
// }
//
```

### Unsafe Access

[](#unsafe-access)

Some values may contain data that will cause access errors when read. For example, pointers leading to "emptiness".

Such data is marked as "unsafe" and only the first element is displayed. If you want to display the values in full, you should use the `VAR_DUMPER_FFI_UNSAFE=1`environment variable.

```
// Create char* with "Hello World!\0" string.
$string = \FFI::new('char[13]');
\FFI::memcpy($string, 'Hello World!', 12);
$pointer = \FFI::cast('char*', $string);

// Dump
dump($pointer);

// VAR_DUMPER_FFI_UNSAFE=0
//
// > char* (unsafe access) {
// >  +0: "H"
// > }

// VAR_DUMPER_FFI_UNSAFE=1
//
// > b"Hello World!\x00"
```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance81

Actively maintained with recent releases

Popularity34

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 88.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~393 days

Total

4

Last Release

100d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/150420?v=4)[Ruslan Sharipov](/maintainers/Serafim)[@serafim](https://github.com/serafim)

---

Top Contributors

[![SerafimArts](https://avatars.githubusercontent.com/u/2461257?v=4)](https://github.com/SerafimArts "SerafimArts (8 commits)")[![CodeWithKyrian](https://avatars.githubusercontent.com/u/48791154?v=4)](https://github.com/CodeWithKyrian "CodeWithKyrian (1 commits)")

---

Tags

symfonyvar-dumperfficasters

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/ffi-var-dumper/health.svg)

```
[![Health](https://phpackages.com/badges/ffi-var-dumper/health.svg)](https://phpackages.com/packages/ffi-var-dumper)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[cognesy/instructor-php

The complete AI toolkit for PHP: unified LLM API, structured outputs, agents, and coding agent control

318123.0k1](/packages/cognesy-instructor-php)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.4k4](/packages/maba-webpack-bundle)[terminal42/contao-mp_forms

An extension for Contao Open Source CMS to create multi steps forms using the form generator

2535.2k6](/packages/terminal42-contao-mp-forms)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
