New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

matusstafura/pest-plugin-fileloader

A PHP Pest plugin to load file
79 1

Larablocks Analysis

matusstafura/pest-plugin-fileloader works with any PHP project: the latest release (v0.4.0, Aug 4, 2026) doesn't depend on Laravel.

Promising: maintained and up to date, meets 1 of 3 checks; not yet widely used.

  • Released in the last 12 months (Aug 4, 2026)
  • 0 downloads a month (needs 10,000)
  • 1 GitHub star (needs 100)

State

Maintained
  • Last stable release: Aug 4, 2026.
  • 1 release in the last 12 months.
  • First released: Oct 20, 2022.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.

Install
composer require matusstafura/pest-plugin-fileloader
Latest Version:v0.4.0
PHP:>=8.1
License:MIT
Last Updated:Aug 4, 2026
Links: GitHub  ·  Packagist
Maintainer: matusstafura

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

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

Alternatives to matusstafura/pest-plugin-fileloader

pestphp/pest-plugin

The Pest plugin manager

113,252,656 49
orchestra/pest-plugin-testbench

Pest plugin for Testbench

93,883 5
erikgaal/pest-plugin-sharding

Pest Plugin to split tests into multiple runs

616,586 2
nekofar/pest-plugin-slim

The Pest Slim Plugin

18,483 5
alleyinteractive/pest-plugin-wordpress

WordPress Pest Integration

6,140 27

Version History

Version Released PHP License
v0.4.0 >=8.1 MIT
v0.3.0 ^8.1 || ^8.2 || ^8.3 || ^8.4 MIT
v0.2.0 ^8.1 MIT
v0.1.2 ^8.1 || ^8.2 || ^8.3 || ^8.4 MIT
v0.1.1 ^8.1 MIT