PHPackages                             matusstafura/pest-plugin-fileloader - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. matusstafura/pest-plugin-fileloader

ActiveLibrary[Testing &amp; Quality](/categories/testing)

matusstafura/pest-plugin-fileloader
===================================

A PHP Pest plugin to load file

v0.3.0(7mo ago)164MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4

Since Oct 20Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/matusstafura/pest-plugin-fileloader)[ Packagist](https://packagist.org/packages/matusstafura/pest-plugin-fileloader)[ Docs](https://github.com/matusstafura/pest-plugin-fileloader)[ RSS](/packages/matusstafura-pest-plugin-fileloader/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (0)

A PHP Pest plugin to load file
==============================

[](#a-php-pest-plugin-to-load-file)

This Pest plugin simplifies loading file for testing.

If you want to test a response, save it as json, load a file and test:

```
use function MatusStafura\PestPluginFileLoader\fileLoader;

test('response', function () {
    $json = fileLoader()->json('tests/response_dump.json');
    expect($json)->toBeArray()
        ->and($json['id'])->toBe(1)
        ->and($json['title'])->toBe('Shirt Black');
});
```

Available methods:

```
json(string $filepath): array
// $json = fileLoader()->json('response.json');

plaintext(string $filepath): string
// fileLoader()->plaintext('response.txt');

xmlToArray(string $filepath): array
// fileLoader()->json('response.xml');
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Matus Stafura](https://github.com/matusstafura)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance62

Regular maintenance activity

Popularity11

Limited adoption so far

Community7

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

Total

5

Last Release

230d ago

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.1.2PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/f56918987521c7c4b77e80e82275ef0ee2be4567bf65f207237f788524938f88?d=identicon)[matusstafura](/maintainers/matusstafura)

---

Top Contributors

[![matusstafura](https://avatars.githubusercontent.com/u/11353888?v=4)](https://github.com/matusstafura "matusstafura (8 commits)")

---

Tags

laravelpestphpphppluginphpplugintestingpestmatusstafura

### Embed Badge

![Health badge](/badges/matusstafura-pest-plugin-fileloader/health.svg)

```
[![Health](https://phpackages.com/badges/matusstafura-pest-plugin-fileloader/health.svg)](https://phpackages.com/packages/matusstafura-pest-plugin-fileloader)
```

###  Alternatives

[defstudio/pest-plugin-laravel-expectations

A plugin to add laravel tailored expectations to Pest

98548.9k4](/packages/defstudio-pest-plugin-laravel-expectations)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[milroyfraser/pest-plugin-gwt

Given When Then(GWT) Plugin for Pest

10332.1k1](/packages/milroyfraser-pest-plugin-gwt)[jonpurvis/lawman

A PestPHP Plugin to help with architecture testing SaloonPHP integrations

4027.7k8](/packages/jonpurvis-lawman)[ozzie/pest-plugin-nest

Nest Pest PHP tests for better organization and readability

2028.3k](/packages/ozzie-pest-plugin-nest)[alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

263.7k1](/packages/alleyinteractive-pest-plugin-wordpress)

PHPackages © 2026

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