timosh/php-activerecord-service-provider

phpactiverecord.org for silex2

v1.1 2017-07-24 10:43 UTC

This package is not auto-updated.

Last update: 2024-04-17 16:50:04 UTC


README

#ActiveRecord PHP ActiveRecord for Silex version 2.

#Using

$app->register(new \ActiveRecordServiceProvider\ActiveRecord(array(
        'ar.model_path'   => __DIR__.'/Model',
        'ar.default_connection' => 'development',
        'ar.connections' => array(
            'development' => 'mysql://login:password@hostname/database'
        ),
    ))
);