jaeger-app / platforms
This package is abandoned and no longer maintained.
No replacement package was suggested.
A CMS Platform abstraction layer for platform agnostic development.
0.1.2
2016-11-30 09:33 UTC
Requires
- php: >=5.4.0
- jaeger-app/exceptions: ^0.1
Requires (Dev)
- phpunit/phpunit: 4.*
Suggests
- jaeger-app/platforms-c5: Allows you to create Concrete5 specific packages
- jaeger-app/platforms-craft: Allows you to create Craft specific plugins
- jaeger-app/platforms-ee2: Allows you to create ExpressionEngine 2 specific modules
- jaeger-app/platforms-ee3: Allows you to create ExpressionEngine 3 specific modules
- jaeger-app/platforms-prestashop: Allows you to create PrestaShop specific modules
- jaeger-app/platforms-wp: Allows you to create WordPress specific plugins
This package is auto-updated.
Last update: 2023-11-18 01:56:16 UTC
README
A CMS Platform abstraction layer for platform agnostic development.
Installation
Add jaeger-app/platforms
as a requirement to your composer.json
:
$ composer require jaeger-app/platforms
Description
jaegerApp\Platforms\AbstractPlatform
outlines the various methods the Platform objects have to provide. At this time, they are:
\JaegerApp\Platforms\AbstractPlatform::getDbCredentials(); \JaegerApp\Platforms\AbstractPlatform::getEmailConfig(); \JaegerApp\Platforms\AbstractPlatform::getCurrentUrl(); \JaegerApp\Platforms\AbstractPlatform::getSiteName(); \JaegerApp\Platforms\AbstractPlatform::getTimezone(); \JaegerApp\Platforms\AbstractPlatform::getSiteUrl(); \JaegerApp\Platforms\AbstractPlatform::getEncryptionKey(); \JaegerApp\Platforms\AbstractPlatform::getConfigOverrides(); \JaegerApp\Platforms\AbstractPlatform::redirect($url); \JaegerApp\Platforms\AbstractPlatform::getPost($key, $default = false) \JaegerApp\Platforms\AbstractPlatform::setSettingsTable($table) \JaegerApp\Platforms\AbstractPlatform::getSettingsTable()
The idea being that any information generally provided by the host CMS, like the database or email configuration, you'll get from the Platform object instead of coding it directly.