diff options
author | Noah Heck <myesain84@gmail.com> | 2017-03-28 22:22:47 -0600 |
---|---|---|
committer | Noah Heck <myesain84@gmail.com> | 2017-03-28 22:22:47 -0600 |
commit | c1b79869f4a76450589391738ca482dda87421dd (patch) | |
tree | 103d095d150fb31f71c6265fb5b45923e3885fac | |
parent | 4a880aa90cfa9ea27254c359fffdc90dcb3a606a (diff) | |
download | E_PDOStatement-c1b79869f4a76450589391738ca482dda87421dd.zip E_PDOStatement-c1b79869f4a76450589391738ca482dda87421dd.tar.gz E_PDOStatement-c1b79869f4a76450589391738ca482dda87421dd.tar.bz2 |
Format README headingsHEADorigin/masterorigin/HEADmaster
-rw-r--r-- | README.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,4 +1,4 @@ -#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. @@ -6,7 +6,7 @@ The result is generally suitable for logging activities, debugging and performan 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. @@ -113,7 +113,7 @@ $params = array( $fullQuery = $stmt->interpolateQuery($params); ``` -##Installation +## Installation Preferred method: install using composer: @@ -125,7 +125,7 @@ Preferred method: install using composer: Alternatively, you can simply download the project, put it into a suitable location in your application directory and include into your project as needed. -##Configuration +## Configuration The EPDOStatement class extends the native \PDOStatement object, so the PDO object must be configured to use the extended definition: @@ -151,12 +151,12 @@ That's all there is to it. Ideally, your project would have a PDO abstraction/wrapper class allowing you to implement this modification in only one place. If you don't have this luxury, success was shown with extending the \PDO class to set the ATTR_STATEMENT_CLASS attribute in the constructor of the PDO. -##Get in Touch +## Get in Touch There are a lot of forum posts related to or requesting this type of functionality, so hopefully someone somewhere will find it helpful. If it helps you, comments are of course appreciated. Bugs, new feature requests and pull requests are of course welcome as well. This was created to help our pro team solve an issue, so it was designed around our specific work flow. If it doesn't work for you though, let me know and I'll be happy to explore if I can help you out. -####E_mysqli +#### E_mysqli E_PDOStatement now has a sister project aimed at providing the same functionality for php devs using the `mysqli` extension: |