Download the PHP package phossa2/shared without Composer
On this page you can find all versions of the php package phossa2/shared. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package shared
phossa2/shared
phossa2/shared is the shared library for other phossa2 libraries.
It requires PHP 5.4, supports PHP 7.0+ and HHVM. It is compliant with PSR-1, PSR-2, PSR-4.
Installation
Install via the composer utility.
or add the following lines to your composer.json
Features
-
Exception
All phossa2 exceptions implement
Phossa2\Shared\Exception\ExceptionInterface.To implment phossa2 exception interface,
-
Message
Phossa2\Shared\Message\Messageclass is the base class for all message classes in all phossa2 packages.- Define package related
Messageclass
Message class is used to convert message code into human-readable messages, and MUST define its own property
$messages.- Using message class
Usually only
Message::get()andMessage::CONST_VALUEare 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. Formatter is shared among all siblings of
Phossa2\Shared\Message\Message - Define package related
-
Utility
Some useful utilities here.
ClassNameTrait
PHP 5.4 has
::classfeature missing.ClassNameTraitprovides three static methods::getClassName(),::getShortName(),::getNameSpace()StaticAbstract
Used to be extended by other STATIC classes.
-
*Trait
Some useful traits in the
Aware/directoryTagAwareTraitadding tag support
-
Interface
Some useful interfaces are in the
Contract/directory.ArrayableInterface
-
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.
Change log
Please see CHANGELOG from more information.
Testing
Contributing
Please see CONTRIBUTE for more information.
Dependencies
- PHP >= 5.4.0
