teval / p-utils
php8 utility class
v0.0.11
2021-11-18 06:50 UTC
Requires
- php: >=8.0
Requires (Dev)
- phpunit/phpunit: 9.5.10
README
介绍
PHP8 常用工具类
安装
composer require teval/p-utils
使用
require_once "vendor/autoload.php";
use pUtils\utils;
use pUtils\verify;
use pUtils\take;
use pUtils\config;
var_dump(utils::isNull(""));
var_dump(verify::isNotNull("2021-11-11")::isDate()::exec());
var_dump(config::get("global", "debug"));
$take = new take();
var_dump($take->get("SELECT * FROM table"));
var_dump($take->getOne("SELECT * FROM table"));
var_dump($take->getOne("SELECT TOP 1 * FROM table"));
结构
包含以下工具类: