justcoded / sample-file
Simple class to get sample file path of some real file for testing
Installs: 5 334
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=8.1.0
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 :).