Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/helios-ag/fmlessqlbundle

Symfony bundle for LessQL ORM mapper
https://github.com/helios-ag/fmlessqlbundle

composer lessql orm symfony-bundle

Last synced: 2 days ago
JSON representation

Symfony bundle for LessQL ORM mapper

Awesome Lists containing this project

README

        

FMLessQLBundle
==============

[LessQL](https://github.com/morris/lessql) integration in Symfony2

LessQL is a lightweight and powerful alternative to Object-Relational Mapping for PHP.

## Installation

### Step 1: Installation

Using Composer, just add the following configuration to your `composer.json`:

Or you can use composer to install this bundle:
Add FMBbcodeBundle in your composer.json:

```sh
composer require helios-ag/fm-lessql-bundle
```

Now tell composer to download the bundle by running the command:

```sh
composer update helios-ag/fm-lessql-bundle
```

### Step 2: Enable the bundle

Finally, enable the bundle in the kernel:

``` php
get('fm_lessql.manager')->getDB('default');
$posts = array();
$result = $db->table_name();
$result = $db->table( 'post' );
$row = $result->fetch(); // fetch next row in result
$rows = $result->fetchAll(); // fetch all rows
}
}
```

More information can be found at http://lessql.net/