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(1mo ago)2010.7k↑50%4MITPHPPHP ^8.1

Since Dec 31Pushed 1y 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 1mo ago

READMEChangelog (3)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

43

—

FairBetter than 91% of packages

Maintenance58

Moderate activity, may be stable

Popularity31

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

55d 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 (7 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

[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

123268.2k4](/packages/maba-webpack-bundle)[sensiolabs/minify-bundle

Assets Minifier (CSS, JS) for Symfony &amp; Minify integration in Asset Mapper

5694.9k1](/packages/sensiolabs-minify-bundle)[symfony_persia/symfonyjdate

Jalali (Shamsi) DateTime for Symfony2, Supports year higher than 2038

1010.6k](/packages/symfony-persia-symfonyjdate)

PHPackages © 2026

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