Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pointybeard/symphony-pdo
Wraps the core Symphony database connection with a PDO based library.
https://github.com/pointybeard/symphony-pdo
composer-package database database-connection symphony symphony-cms
Last synced: 9 days ago
JSON representation
Wraps the core Symphony database connection with a PDO based library.
- Host: GitHub
- URL: https://github.com/pointybeard/symphony-pdo
- Owner: pointybeard
- License: other
- Created: 2015-08-20T05:31:48.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2021-05-20T08:10:59.000Z (over 3 years ago)
- Last Synced: 2024-10-12T06:21:06.720Z (about 1 month ago)
- Topics: composer-package, database, database-connection, symphony, symphony-cms
- Language: PHP
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# SymphonyCMS: PDO Database Wrapper
- Version: v0.1.7
- Date: May 30 2019
- [Release notes](https://github.com/pointybeard/symphony-pdo/blob/master/CHANGELOG.md)
- [GitHub repository](https://github.com/pointybeard/symphony-pdo)Wraps the core [Symphony CMS](http://www.getsymphony.com/) database connection with a PDO based library
## Installation
This library is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/symphony-pdo` or add `"pointybeard/symphony-pdo": "~0.1"` to your `composer.json` file.
And run composer to update your dependencies:
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update## Usage
```php
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](https://github.com/pointybeard/symphony-pdo/issues),
or better yet, fork the library and submit a pull request.## Contributing
We encourage you to contribute to this project. Please check out the [Contributing documentation](https://github.com/pointybeard/symphony-pdo/blob/master/CONTRIBUTING.md) for guidelines about how to get involved.
## License
"SymphonyCMS: PDO Database Wrapper" is released under the [MIT License](http://www.opensource.org/licenses/MIT).