erickmcarvalho / anteros
Implementations for Laravel 4 Framework
Requires
- php: >=5.3.0
- erickmcarvalho/likepdo: >=0.1.0
- illuminate/database: >=4.1.0
- illuminate/support: >=4.1.0
This package is not auto-updated.
Last update: 2023-04-10 19:48:22 UTC
README
Implementations for Laravel 4 Framework
Features
- Mssql Driver Connection - Using standard features from MSSQL library
Installation
Add erickmcarvalho\anteros
as a requirement to composer.json:
{ "require": { "erickmcarvalho/anteros: "0.1.*" } }
Update your packages with composer update
or install with composer install
.
Once Composer has installed or updated your packages you need to register
Anteros and the package it uses (extradb) with Laravel itself.
Open up app/config/app.php
and find the providers key towards the bottom.
Add the following to the list of providers:
'Anteros\AnterosServiceProvider'
You won't need to add anything to the aliases section.
Configuration
- Mssql Database
The configuration database is not separate to Anteros. You'll just add a new array to the connections
array in app/config/database.php
.
'mssql' => array(
'driver' => 'anteros:mssql',
'host' => 'localhost',
'database' => 'database',
'username' => 'sa',
'password' => 'password',
'prefix' => ''
),
Don't forget to update your default database connection.