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-09-26 15:46:00 UTC
README
CI/CD 
BezPapirove s.r.o. 的通用库,适用于PHP项目。
库完全由单元测试覆盖。
信息
一些重要函数的列表
- 文件处理
在存储中解析正确的文件路径
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 $handler->getFilePath(Uuid $fileName) : string