bezpapirove/bezpapirove_php_lib
Common library for BezPapirove s.r.o. which provide classes useable in PHP projects.
Library is fully covered by unit tests.
resolve correct file path in storage
FileStorageFactory::createFromConfig(array $config)
FileStorageInterface->save(string $sourcePath, Uuid $uuid): void;
FileStorageInterface->read(Uuid $uuid): string;
FileStorageInterface->delete(Uuid $uuid): void;
FileStorageInterface->exists(Uuid $uuid): bool;
FileStorageInterface->duplicate(Uuid $source, Uuid $target): void;
FileStorageInterface->getFileSize(Uuid $uuid): int;
resolve correct file path in storage
FolderStructure::getFolderStructureFromFileName(Uuid $fileName, int $levels = 3) : array
FolderStructure::pathExists(string $basePath, array $pathList) : bool
FolderStructure::createFolderStructure(string $basePath, array $pathList) : bool
use \Bezpapirove\BezpapirovePhpLib\File\FileHandler;
$handler = new FileHandler(string $basePath);
$handler->saveFile(string $filePath) : Uuid
$handler->readFile(Uuid $fileName) : string
$handler->fileExists(Uuid $fileName) : bool
How can I help you explore Laravel packages today?