acredula / support
Support package providing commonly used packages via service providers and inflectors.
0.1.1
2015-11-25 11:54 UTC
Requires
- php: >=5.4.0
- aura/session: ^2.0
- aura/sql: ^2.4
- aura/sqlquery: ^2.5
- gorka/dot-notation-access: ^1.0
- josegonzalez/dotenv: ^1.0
- league/container: ^2.0
- swiftmailer/swiftmailer: ^5.4
- twig/twig: ^1.23
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-10-27 03:16:14 UTC
README
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);