Download the PHP package cinling/ext-lib without Composer
On this page you can find all versions of the php package cinling/ext-lib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package ext-lib
cinling/ext-lib
简体中文版
Install
Document
- Service
- FileCacheService
- LogService
- Util
- ArrayUtil
- ConsoleUtil
- CronParseUtil
- DevelUtil
- EncryptUtil
- EnvUtil
- ExcelUtil
- FileUtil
- GeoUtil
- Value Object(vo)...
- Enums...
Service
- Encapsulation of a function
- Provides configurable parameters
FileCacheService
- Save data to file
Config
| name | type | note | default |
|---|---|---|---|
| path | string | Cache file save path | ./runtime/cin-cache |
| pathDeeps | int | Path depth | 2 |
| pathUnitLen | int | The number of characters in a single directory | 2 |
Example
Set cache
Get cache
Delete cache
Set cache with expiration time
LogService
- Output the log and save it in the log file
Config
| name | type | note | default |
|---|---|---|---|
| path | string | Log file save path | ./runtime/cin-log |
| fileMaxSize | string | Log file max bytes | 2MB |
Example
output in runtime/cin-log/cin.log:
[2021-01-18 14:54:31 INFO Title] Content...
Util
- Provides encapsulation of static methods
- It can be inserted by
trait
ArrayUtil
toArray($attrs): array
Convert $attrs to an array。
$attrs can be an array, an object, a BaseVo derived class, or any collation of the above
All versions of ext-lib with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3||^8.0
ext-ftp Version *
ext-json Version *
ext-curl Version *
ext-mbstring Version *
ext-simplexml Version *
ext-libxml Version *
phpoffice/phpspreadsheet Version ^1.8
ext-ftp Version *
ext-json Version *
ext-curl Version *
ext-mbstring Version *
ext-simplexml Version *
ext-libxml Version *
phpoffice/phpspreadsheet Version ^1.8
The package cinling/ext-lib contains the following files
Loading the files please wait ...