PHP code example of justcoded / sample-file
1. Go to this page and download the library: Download justcoded/sample-file library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
justcoded / sample-file example snippets
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();