2017 © Pedro Peláez
 

library symphony-pdo

Wraps the core Symphony database connection with a PDO based library.

image

pointybeard/symphony-pdo

Wraps the core Symphony database connection with a PDO based library.

  • Friday, April 22, 2016
  • by pointybeard
  • Repository
  • 1 Watchers
  • 0 Stars
  • 54 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

SymphonyCMS: PDO Database Wrapper

Wraps the core Symphony CMS database connection with a PDO based library, (*1)

Installation

This library is installed via Composer. To install, use composer require pointybeard/symphony-pdo or add "pointybeard/symphony-pdo": "~0.1" to your composer.json file., (*2)

And run composer to update your dependencies:, (*3)

$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

Usage

<?php
use SymphonyPDO;

$query = SymphonyPDO\Loader::instance()->query(
    'SELECT * FROM `tbl_sections` ORDER BY `id` ASC;'
);

var_dump($query->fetchObject()->name);
// string(8) "Articles"

// Or, better yet, use a ResultIterator instead
foreach(new SymphonyPDO\Lib\ResultIterator('\stdClass', $query) as $result) {
    printf('%d => %s (%s)' . PHP_EOL, $result->id, $result->name, $result->handle);
}
// 1 => Articles (articles)
// 2 => Categorties (categories)

Support

If you believe you have found a bug, please report it using the GitHub issue tracker, or better yet, fork the library and submit a pull request., (*4)

Contributing

We encourage you to contribute to this project. Please check out the Contributing documentation for guidelines about how to get involved., (*5)

License

"SymphonyCMS: PDO Database Wrapper" is released under the MIT License., (*6)

The Versions

22/04 2016

dev-master

9999999-dev

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony

11/02 2016

0.1.4

0.1.4.0

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony

20/08 2015

0.1.3

0.1.3.0

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony

20/08 2015

0.1.2

0.1.2.0

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony

20/08 2015

0.1.1

0.1.1.0

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony

20/08 2015

0.1.0

0.1.0.0

Wraps the core Symphony database connection with a PDO based library.

  Sources   Download

MIT

The Requires

  • php >=5.6.6

 

database wrapper pdo symphony