Download the PHP package galactium/space without Composer
On this page you can find all versions of the php package galactium/space. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package space
Galactium Space
Galactium Space is a light library to provide extended functionality for Galactium projects.
Requirements
- PHP 7.1 or above
- Phalcon 3.3
Installation
Components
Translation
New Translation Adapter: NestedArray:
-
implements \JsonSerializable interface:
- supports "dot"-navigation:
Translation Manager
- Supports fallback language;
-
Supports Loader to load translations
- Supports hierarchically messages directories:
If you don't need multiple language files in Module
directory, you can put to them translation file with the
same name:
- All lodaded translations are returned in single NestedArray adapter:
Please note: Translation Manager works only with NestedArray Adapter.
Mailer wrapper of swiftmailer/swiftmailer.
You can use to get access to Message instance in your template. For example, it can be used to insert an image as embed content:
Identifier
The identifier has been developed to easily convert a model's key params (like module, namespace, table name, identity field, and it's value) to string.
Identifier Manager can generate GUID (Galactium Unique Identifer) in format: module::namespace.class.dotted.params
for a model which implements Galactium\Space\Identifier\IdentifiableInterface
interface.
By default Identifer supports only Galactium's class structure.
Errors Manager
Errors Manager provide a simple error handling for an app. It is used to catch all exceptions generated by an app and converting them to beautiful response.
Seo
Seo Component includes:
-
Breadcrumbs
-
Meta information
-
OpenGraph
- SchemaOrg (Factory for Spatie\SchemaOrg)
You can get access to all components listed above using Galactium\Space\Seo\Manager
.
Other improvements
\Galactium\Space\Mvc\Model
has a special field$append
You can easily overwrite or add any attribute to json.
Please note: For some reasons doesn't work in some cases.
License
This library is licensed under the Apache 2.0 License - see the LICENSE.md file for details.