Skip to content
Bastien Crettenand edited this page Aug 28, 2019 · 4 revisions

๐Ÿ“” Documentation

Use composer ๐ŸŽถ

Installation

> composer install crbast/slsql

Configuration

By default the configuration file is located in: /vendor/crbast/slsql/src/Config.php

It is possible to override this file by creating a configuration file in this way (no matter the path of the file):


Config.php

<?php namespace slsql;

class Config
{
    const dbType = 'mysql',
    dbName = 'slsql_test',
    host = '127.0.0.1:3306',
    user = 'root',
    password = '123';
}

And include it in your autoload

Have fun

Create your own models! -> Documentation - Model

Clone this wiki locally