Skip to content

Commit 8dfd232

Browse files
committed
Small readme and missing sample file
1 parent 2f9b63d commit 8dfd232

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,29 @@
1-
# sample-file
1+
# Sample File
2+
3+
Simple classes to get real file sample for test purposes. May be used in phpunit tests for example.
4+
5+
Files were taken from public resources over internet.
6+
7+
## Usage
8+
9+
```php
10+
use JustCoded\SampleFile\Image;
11+
use JustCoded\SampleFile\Document;
12+
use JustCoded\SampleFile\Sheet;
13+
14+
15+
$imagePath = Image::make()
16+
->png() // or jpg()
17+
->medium()
18+
->path();
19+
20+
$docPath = Document::make()
21+
->docx()
22+
->path();
23+
24+
$sheetPath = Sheet::make()
25+
->xlsx()
26+
->path();
27+
```
28+
29+
Your IDE will help you with available methods and options :).
100 KB
Loading

0 commit comments

Comments
 (0)