https://github.com/justcoded/sample-file
https://github.com/justcoded/sample-file
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/justcoded/sample-file
- Owner: justcoded
- Created: 2023-11-09T12:33:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T13:39:18.000Z (about 2 years ago)
- Last Synced: 2025-03-03T17:49:11.901Z (11 months ago)
- Language: PHP
- Size: 72.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Sample File
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
```php
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 :).