bezpapirove/bezpapirove_php_lib

Maintainers

Package info

github.com/BezPapirove/bezpapirove_php_lib

pkg:composer/bezpapirove/bezpapirove_php_lib

Statistics

Installs: 74

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v2.0.2 2026-02-11 14:32 UTC

This package is auto-updated.

Last update: 2026-02-11 14:33:54 UTC


README

!!! Version 2.0.x is not compatible with 1.x.x !!!

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

v2.x.x

- file handler

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;

v1.x.x

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

- generate file UUID name

- db connector