PHPackages                             jdz/dump - 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. jdz/dump

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

jdz/dump
========

JDZ simple file dumper helper

1.0.1(2mo ago)022MITPHPPHP &gt;=8.2

Since Mar 31Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/joffreydemetz/dump)[ Packagist](https://packagist.org/packages/jdz/dump)[ Docs](https://jdz.joffreydemetz.com/dump)[ RSS](/packages/jdz-dump/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Dump
====

[](#dump)

Simple file dumper helper

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

[](#installation)

```
composer require jdz/dump
```

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

[](#requirements)

- PHP 8.2 or higher

Usage
-----

[](#usage)

### Basic Example

[](#basic-example)

```
use JDZ\Utils\Dump;

$dump = new Dump('/path/to/logfile.txt');

// Write content (appends to file)
$dump->write('First line');
$dump->write('Second line');

// Read file contents
$content = $dump->read(); // "First line\nSecond line\n"

// Check if file exists
$dump->exists(); // true

// Delete file
$dump->delete();
$dump->exists(); // false
```

### Fluent Interface

[](#fluent-interface)

`write()` and `delete()` return `$this` for chaining:

```
$dump = new Dump('/tmp/debug.log');
$dump->write('Starting process')
     ->write('Step 1 complete')
     ->write('Step 2 complete');
```

### Reading a Non-Existent File

[](#reading-a-non-existent-file)

```
$dump = new Dump('/path/to/missing.txt');
$dump->read(); // null
```

Testing
-------

[](#testing)

```
composer test
# or
vendor/bin/phpunit
```

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance83

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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 ~374 days

Total

2

Last Release

85d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e83e3701566e43438525ed14578487e732b849d152b5071aa1613a0dad96913?d=identicon)[jdz](/maintainers/jdz)

---

Top Contributors

[![joffreydemetz](https://avatars.githubusercontent.com/u/15113527?v=4)](https://github.com/joffreydemetz "joffreydemetz (6 commits)")

---

Tags

helperdumpcoreJDZ

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jdz-dump/health.svg)

```
[![Health](https://phpackages.com/badges/jdz-dump/health.svg)](https://phpackages.com/packages/jdz-dump)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k132.8M888](/packages/barryvdh-laravel-ide-helper)[nette/utils

🛠 Nette Utils: lightweight utilities for string &amp; array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

2.1k430.4M1.7k](/packages/nette-utils)[fidry/cpu-core-counter

Tiny utility to get the number of CPU cores.

243171.4M40](/packages/fidry-cpu-core-counter)[beste/json

A simple JSON helper to decode and encode JSON

4226.8M3](/packages/beste-json)[chillerlan/php-settings-container

A container class for immutable settings objects. Not a DI container.

3435.1M23](/packages/chillerlan-php-settings-container)

PHPackages © 2026

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