定制 yohns/e 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yohns/e

最新稳定版本:0.2.0

Composer 安装命令:

composer create-project yohns/e

包简介

Error handler and logger

README 文档

README

An internal error handler and error logger.

Yohns\Core\E

include 'vendor/autoload.php';

use Yohns\Core\E;

E::initiate([
	// the directory to store the error logs in.
	'dir' => __DIR__.'/logs',
	// default to display the errors
	'display' => true,
	// what variables to store
	'store' => [
		// if any $_POST variable is set
		'_POST',
		// if any $_FILES variable is set
		'_FILES',
		// if any $_GET variable is set
		'_GET',
		// if any $_COOKIE variable is set, default this is not saved
		//'_COOKIE',
		// if any $_SESSION variable is set, default this is not saved
		//'_SESSION'
	],
]);

set_error_handler('Yohns\Core\E::errHandler');
set_exception_handler('Yohns\Core\E::excHandler');

Yohns\Core\Err

include 'vendor/autoload.php';

use Yohns\Core\Err;

try {
	throw new Err("This is a custom error message.");
} catch (Err $e) {
	echo $e->getDetailedMessage();
}

统计信息

  • 总下载量: 16
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-08-18

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固