Download the PHP package ruckuus/php-activerecord-service-provider without Composer
On this page you can find all versions of the php package ruckuus/php-activerecord-service-provider. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ruckuus/php-activerecord-service-provider
More information about ruckuus/php-activerecord-service-provider
Files in ruckuus/php-activerecord-service-provider
Package php-activerecord-service-provider
Short Description A PHPActiveRecord Service Provider for Silex
License MIT
Homepage https://github.com/ruckuus/ActiveRecordServiceProvider
Informations about the package php-activerecord-service-provider
ActiveRecordServiceProvider
A PHP ActiveRecord ServiceProvider for Silex.
History
I was about to use [Available ActiveRecord Extension] (https://github.com/RafalFilipek/ActiveRecordExtension/blob/master/ActiveRecordExtension.php), but then I realised that registerNamespace() is deprecated in later version of Silex. This work is experimental, it has a minimum functionality to "work".
Fetch
The recommended way to install ActiveRecordServiceProvider is through composer.
Just create a composer.json file for your project:
Parameters
- ar.model_dir - Path to where model folder is located ( without trailing slash )
- ar.connections - Array of connections (
name => connection
). Connections examples:mysql://username:password@localhost/database_name
pgsql://username:password@localhost/development
sqlite://my_database.db
oci://username:passsword@localhost/xe
- ar.default_connection - default models connection.
Register
Usage
Create your model in __DIR__ . '/app/Model'
. Eg.
In your application:
For more informations check the website of PHP ActiveRecord. Its wiki.
All versions of php-activerecord-service-provider with dependencies
silex/silex Version ~1.0
php-activerecord/php-activerecord Version ~1.1.1