定制 phine/exception 二次开发

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

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

phine/exception

最新稳定版本:1.0.0

Composer 安装命令:

composer require phine/exception

包简介

A PHP library for improving the use of exceptions.

关键字:

README 文档

README

Build Status Coverage Status Latest Stable Version Total Downloads

Adds functionality to the standard Exception class.

  • Create new exceptions based on sprintf() format.
  • Create new exceptions using the last error (error_get_last()).

Usage

use Phine\Exception\Exception;

$exception = Exception::createUsingFormat(
    'This is my %s message.',
    'formatted',
    $previousException
);

echo $undefined;

$exception = Exception::createUsingLastError();

Requirement

  • PHP >= 5.3.3

Installation

Via Composer:

$ composer require "phine/exception=~1.0"

Documentation

You can find the documentation in the docs/ directory.

License

This library is available under the MIT license.

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-08-27