2017 © Pedro Peláez
 

library environmentalist

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

image

einstein/environmentalist

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

  • Thursday, June 27, 2013
  • by shuber
  • Repository
  • 1 Watchers
  • 2 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Environmentalist

Cleans up your PHP environment by managing include paths, error handlers, and autoloading, (*1)

Installation

If you're using composer simply add the einstein/environmentalist dependency to your composer.json file., (*2)

Otherwise you can manually install it by cloning the repository somewhere in your php include_path., (*3)

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()., (*4)

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, (*5)

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

Todo

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

The Versions

27/06 2013

dev-master

9999999-dev https://github.com/einstein/environmentalist

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

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

autoloading error handlers exception handlers include paths

27/06 2013

0.0.1

0.0.1.0 https://github.com/einstein/environmentalist

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

  Sources   Download

MIT

The Requires

  • php >= 5.3.0

 

autoloading error handlers exception handlers include paths