bezpapirove / bezpapirove_php_lib
v1.0.2
2024-06-24 07:47 UTC
Requires
- php: >=8.0
- ext-openssl: *
- guzzlehttp/guzzle: ^7.8
- guzzlehttp/psr7: ^2.6
- setasign/fpdi: ^2.3
- symfony/filesystem: ^6.4
- symfony/uid: ^6.4
- tecnickcom/tcpdf: ^6.7
Requires (Dev)
- ext-fileinfo: *
- friendsofphp/php-cs-fixer: ^3.59
- php-parallel-lint/php-console-highlighter: ^1.0
- php-parallel-lint/php-parallel-lint: ^1.4
- phpstan/phpstan: ^1.11
- phpunit/phpunit: ^11.2
This package is auto-updated.
Last update: 2024-10-26 16:02:37 UTC
README
CI/CD
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