summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Heck <myesain84@gmail.com>2017-03-28 22:22:47 -0600
committerNoah Heck <myesain84@gmail.com>2017-03-28 22:22:47 -0600
commitc1b79869f4a76450589391738ca482dda87421dd (patch)
tree103d095d150fb31f71c6265fb5b45923e3885fac
parent4a880aa90cfa9ea27254c359fffdc90dcb3a606a (diff)
downloadE_PDOStatement-origin/master.zip
E_PDOStatement-origin/master.tar.gz
E_PDOStatement-origin/master.tar.bz2
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 0b2ba9c..2455d73 100644
--- a/README.md
+++ b/README.md
@@ -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: