Download the PHP package phossa/phossa-shared without Composer
On this page you can find all versions of the php package phossa/phossa-shared. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phossa/phossa-shared
More information about phossa/phossa-shared
Files in phossa/phossa-shared
Package phossa-shared
Short Description The shared package for other phossa packages
License MIT
Homepage https://github.com/phossa/phossa-shared
Informations about the package phossa-shared
phossa-shared
Introduction
Phossa-shared is the shared package required by other phossa packages.
Installation
Install via the composer
utility.
or add the following lines to your composer.json
Features
-
Exception
All phossa exceptions implement
Phossa\Shared\Exception\ExceptionInterface
. To extend phossa exceptions, -
Message
MessageAbstract
class is the base class for allMessage
classes in all phossa packages.- Define package related
Message
class
Message
class is used to convert message code into human-readable messages, and MUST define its own property$messages
.Message
class usage
Usually only
Message::get()
andMessage::CONST_VALUE
are used.- Message loader
Used for loading different code to message mapping such as language files.
- Message formatter
Used for formatting messages for different devices such as HTML page.
- Define package related
-
Pattern
Commonly used patterns in
Interface
orTrait
StaticTrait
Used to be included in a static class which can not extends
StaticAbstract
StaticAbstract
Used to be extended by other classes.
SingletonInterface
andSingletonTrait
Used to be included in a singleton class.
Usage,
This singleton implementation has a feature which allows singleton class to extended.
ShareableInterface
andShareableTrait
Multiple instances are allowed for
Shareable
, but only one global copy. Such as global event manager and lots of local event managers.Usage,
-
Taggable
Added
TaggableInterface
andTaggableTrait
. -
Support PHP 5.4+, PHP 7.0+, HHVM
-
PHP7 ready for return type declarations and argument type declarations.
-
PSR-1, PSR-2, PSR-4 compliant.
- Decoupled packages can be used seperately without the framework.
Dependencies
PHP >= 5.4.0