2017 © Pedro Peláez
 

symfony-bundle fm-lessql-bundle

Lessql bundle, adds LessQL ORM PHP to your Symfony2 project

image

helios-ag/fm-lessql-bundle

Lessql bundle, adds LessQL ORM PHP to your Symfony2 project

  • Wednesday, December 23, 2015
  • by helios
  • Repository
  • 2 Watchers
  • 2 Stars
  • 10 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

FMLessQLBundle

LessQL integration in Symfony2, (*1)

LessQL is a lightweight and powerful alternative to Object-Relational Mapping for PHP., (*2)

Installation

Step 1: Installation

Using Composer, just add the following configuration to your composer.json:, (*3)

Or you can use composer to install this bundle: Add FMBbcodeBundle in your composer.json:, (*4)

    composer require helios-ag/fm-lessql-bundle

Now tell composer to download the bundle by running the command:, (*5)

    composer update helios-ag/fm-lessql-bundle

Step 2: Enable the bundle

Finally, enable the bundle in the kernel:, (*6)

``` php <?php // app/AppKernel.php, (*7)

public function registerBundles() { $bundles = array( // ... new FM\LessqlBundle\FMLessqlBundle(), ); }, (*8)


## Configuration You can configure bundle as follows ```yaml fm_lessql: instances: default: dsn: sqlite:%kernel.root_dir%/test.sqlite3 username: '' password: '' options: mysql: dsn: mysql:host=localhost;dbname=testdb;charset=utf8 username: root password: 12345 options: 'PDO::ATTR_EMULATE_PREPARES': { value: false } 'PDO::ATTR_ERRMODE': { value: 'PDO::ERRMODE_EXCEPTION' }

Usage

Controller, (*9)


class AppController extends Controller { /** * @Template() */ public function indexAction() { $db = $this->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/, (*10)

The Versions

23/12 2015

dev-master

9999999-dev https://github.com/helios-ag/FMLessqlBundle

Lessql bundle, adds LessQL ORM PHP to your Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Al Ganiev

orm sql lessql

24/09 2015

dev-analysis-zExYZq

dev-analysis-zExYZq https://github.com/helios-ag/FMLessqlBundle

Lessql bundle, adds LessQL ORM PHP to your Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Al Ganiev

orm sql lessql

31/05 2015

0.1

0.1.0.0 https://github.com/helios-ag/FMLessqlBundle

Lessql bundle, adds LessQL ORM PHP to your Symfony2 project

  Sources   Download

MIT

The Requires

 

The Development Requires

by Al Ganiev

orm sql lessql