laravelbook/ardent — pull request #62 by igorsantos07 (2013-07-09 02:51:10+00:00)
Title: Running Ardent out of Laravel

The simplest usage (the only one?) for this would be having this snippet somewhere in the bootstrap/config files of your project:

```php
\LaravelBook\Ardent\Ardent::configureAsExternal('en', [
'driver' => 'mysql',
'host' => 'localhost',
'port' => '3306',
'database' => 'db',
'username' => 'root',
'password' => 'mypass',
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci'
]);
```

In my case, I'm using [Restler](http://luracast.com/products/restler/) and needing an external AR library. Hiding the Laravel boilerplate configuration is cool for external usage of libraries like Ardent.