PHPackages                             noahheck/e\_pdostatement - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. noahheck/e\_pdostatement

ActiveLibrary[Database &amp; ORM](/categories/database)

noahheck/e\_pdostatement
========================

Drop in replacement for default PDOStatement class allowing devs to view an interpolated version of a parameterized query

2.3.1(8y ago)5121.2k↓36.2%13[1 issues](https://github.com/noahheck/E_PDOStatement/issues)Apache-2.0PHPPHP &gt;=5.1.0CI failing

Since Feb 7Pushed 6y ago5 watchersCompare

[ Source](https://github.com/noahheck/E_PDOStatement)[ Packagist](https://packagist.org/packages/noahheck/e_pdostatement)[ Docs](https://github.com/noahheck/E_PDOStatement)[ RSS](/packages/noahheck-e-pdostatement/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (17)Used By (0)

E\_PDOStatement
===============

[](#e_pdostatement)

Extension to the default PHP PDOStatement class providing the ability to generate a version of a parameterized query with the parameters injected into the query string.

The result is generally suitable for logging activities, debugging and performance analysis.

View the [changelog](CHANGELOG.md)

Usage
-----

[](#usage)

PHP's PDO are a much improved way for handling database communications, but not being able to view a complete version of the query to be executed on the server after statement parameters have been interpolated can be frustrating.

A common method for obtaining the interpolated query involves usage of outside functions or extending the native `PDOStatement` object and adding a new method to accomplish this.

The E\_PDOStatement (**E**nhanced PDOStatement) project was designed as a solution to this that doesn't require workflow modifications to generate the resultant query string. The generated query string is accessible on the new `EPDOStatement` object as a new `fullQuery` property :

```
