A fundamental toolkit for PHP 7.
composer require sinri/arkIt is a new generation for Enoch Project, as which might continuously support projects in PHP 5.4+.
And every living substance was destroyed which was upon the face of the ground, both man, and cattle, and the creeping things, and the fowl of the heaven; and they were destroyed from the earth: and Noah only remained [alive], and they that [were] with him in the ark. (Genesis 7:23)
Ark requests PHP 7.
Class ArkHelper is designed for the convenience of developing, it help you to operate data structure safely, and some environment shortcuts.
Class ArkLogger is an implementation of PSR-3. You might create an instance with certain log storage path, or use a silent one as default.
Class ArkCurl provides a higher level usage of CURL.
Class ArkCache defined the interface of being a cache handler, and implementations by File System and Redis, also the fallback choice Dummy.
(Note, if you want to use Redis, predis/predis is needed in composer.json.)
Class ArkPDO with model encapsulation are there for you Database Operation.
Class ArkSqlite3 is an extended tool for working on SQLite3.
The main reference is Ark(), which would provide a singleton of class TheArk.
For web service, Class TheArk contains:
- Method
webInput, give the global instance of class ArkWebInput. - Method
webOutput, give the global instance of class ArkWebOutput. - Method
webService, give the global instance of class ArkWebService.
For general routines, the multi-instance hubs (register and get) are provided:
- Hub for ArkPDO
- Hub for ArkLogger
- Hub for ArkCache
Class ArkCliProgram is designed to support a whole CLI project with certain namespace and class rule.
BitCoin/BTC: 18wCjV8mnepDpLzASKdW7CGo6U8F9rPuV4
Alipay Account: