einstein/environmentalist 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

einstein/environmentalist

Composer 安装命令:

composer require einstein/environmentalist

包简介

Cleans up your environment by managing include paths, error handlers, and autoloading

README 文档

README

Cleans up your PHP environment by managing include paths, error handlers, and autoloading

Installation

If you're using composer simply add the einstein/environmentalist dependency to your composer.json file.

Otherwise you can manually install it by cloning the repository somewhere in your php include_path.

git clone git@github.com:einstein/environmentalist.git`
require 'environmentalist/environmentalist.php';

Usage

Enabling/disabling

Environmentalist::enable() is called when loaded. If you'd like to disable its behavior, simply call Environmentalist::disable().

Autoload extensions

Environmentalist::autoload_extensions()
Environmentalist::append_autoload_extension($extension)
Environmentalist::prepend_autoload_extension($extension)
Environmentalist::set_autoload_extensions($extensions)

Error handlers

Environmentalist::error_handlers()
Environmentalist::append_error_handler($handler)
Environmentalist::prepend_error_handler($handler)
Environmentalist::set_error_handlers($handlers)

Include paths

Environmentalist::include_paths()
Environmentalist::append_include_path($path)
Environmentalist::prepend_include_path($path)
Environmentalist::set_include_paths($paths)

Testing

Environmentalist tests require jaz303/ztest

Simply download it to environmentalist/test/ztest (or anywhere else in your PHP include_path), then run test/run

Todo

  • Update README documentation
  • Allow other filename naming conventions to be registered
  • Standardize the return values of the set_* methods
  • Update tests

统计信息

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

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固