PHP code example of 2lenet / file-bundle
1. Go to this page and download the library: Download 2lenet/file-bundle 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/ */
2lenet / file-bundle example snippets
$fileSpec = $this->fileManager->getLocalFilename(
ENTITY::PDFSTORAGENAME,
$object,
"pdf"
);
file_put_contents($fileSpec->absPath,$youdata);
$object->setLocalPdf($fileSpec->dbPath);