bezpapirove/bezpapirove_php_lib

v1.0.2 2024-06-24 07:47 UTC

This package is auto-updated.

Last update: 2024-10-26 16:02:37 UTC


README

CI/CD build main branch

Common library for BezPapirove s.r.o. which provide classes useable in PHP projects.

Library is fully covered by unit tests.

Info

List of some important functions

- file handler

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

- handling file in data storage

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
$handler->getFilePath(Uuid $fileName) : string

- generate file UUID name

- db connector