justcoded/sample-file

There is no license information available for the latest version (v1.0.0) of this package.

Simple class to get sample file path of some real file for testing

v1.0.0 2023-11-09 13:38 UTC

This package is auto-updated.

Last update: 2024-11-09 15:56:35 UTC


README

Simple classes to get real file sample for test purposes. May be used in phpunit tests for example.

Files were taken from public resources over internet.

Usage

use JustCoded\SampleFile\Image;
use JustCoded\SampleFile\Document;
use JustCoded\SampleFile\Sheet;


$imagePath = Image::make()
    ->png() // or jpg()
    ->medium()
    ->path();
    
$docPath = Document::make()
    ->docx()
    ->path();

$sheetPath = Sheet::make()
    ->xlsx()
    ->path();

Your IDE will help you with available methods and options :).