hmsweb/support

Support package providing commonly used packages via service providers and inflectors.

0.1.1 2015-11-25 11:54 UTC

This package is auto-updated.

Last update: 2024-12-27 04:23:01 UTC


README

Software License Total Downloads

Support package providing commonly used packages via service providers and inflectors.

All Service Providers require league/container >=2.*.

ConfigServiceProvider

use Acredula\Support\ServiceProvider\ConfigServiceProvider;

$container->addServiceProvider(new ConfigServiceProvider([
    'path' => __DIR__ . '/../config/config.php',
    'env'  => __DIR__ . '/../.env'
]));
Dependencies

AuraSqlServiceProvider

use Acredula\Support\ServiceProvider\AuraSqlServiceProvider;

$container->addServiceProvider(new AuraSqlServiceProvider('mysql'));

Database credentials should exist in your .env file in the following format.

DATABASE_HOST={{ host }}
DATABASE_NAME={{ db_name }}
DATABASE_USER={{ username }}
DATABASE_PASS={{ password }}
Dependencies

SwiftMailerServiceProvider

use Acredula\Support\ServiceProvider\SwiftMailerServiceProvider;

$container->addServiceProvider(new SwiftMailerServiceProvider);
Dependencies

TwigServiceProvider

use Acredula\Support\ServiceProvider\TwigServiceProvider;

$container->addServiceProvider(new TwigServiceProvider([
    'templates'  => __DIR__ . '/../templates',
    'cache' => __DIR__ . '/../writable/directory',
    'extensions' => [
        'Acme\Tekkers\UnbelievableTekkersExtension'
        'Acme\Large\LargeGravyExtension'
    ]
]));
Dependencies

AuraSessionServiceProvider

use Acredula\Support\ServiceProvider\AuraSessionServiceProvider;

$container->addServiceProvider(new AuraSessionServiceProvider);
Dependencies