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

This package is auto-updated.

Last update: 2023-11-18 01:56:16 UTC


README

Build Status Scrutinizer Code Quality Author GitHub license

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.