Skip to content

basic php psr-11 compatible container class, interface and exceptions

License

Notifications You must be signed in to change notification settings

Koudela/eArc-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eArc-container

Basic PSR-11 compatible php container blueprint.

installation

$ composer install earc/container

basic usage

use eArc\Container\Items;

$container = new Items();

Please refer to the ItemsInterface for details.

exceptions

  • An ItemNotCallableException is thrown if an item is called that is no callable.

  • An ItemNotFoundException is thrown if an item is get or called that does not exist.

  • An ItemOverwriteException is thrown if an item is set but its name exists already. overwrite() does not trigger this exception.

  • All three exceptions inherit from the ItemException.

About

basic php psr-11 compatible container class, interface and exceptions

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages