Download the PHP package shish/ffsphp without Composer
On this page you can find all versions of the php package shish/ffsphp. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package ffsphp
Short Description A collection of workarounds for stupid PHP things
License MIT
Homepage https://github.com/shish/ffsphp
Informations about the package ffsphp
FFS, PHP
Because it's $CURRENT_YEAR and I'm still hitting the same PHP issues
as years ago...
Features
PDO:
Example use:
-
Changed PDO constructor so that the MySQL backend accepts username and password as part of the DSN, just like every other backend.
-
Added
PDO::execute($query, $parameters), so that one can write a templated query without needing to create a single-use prepared statement -
Made
PDOStatement::execute($parameters)use typed bindings, so that"LIMIT :foo", ["foo"=>3]is rendered asLIMIT 3instead ofLIMIT '3' -
Made bindings work for arrays, so that
WHERE id IN :idswith["ids"=>[1,2,3]]is rendered asWHERE id IN (1,2,3)instead ofWHERE id IN '1,2,3' -
Add
PDO::getTableNames(), which returns an array of table names in the current database. (For Postgres, SQLite, and MySQL) - Add
PDO::describe($table), which returns an array of column descriptions for the given table. (For Postgres, SQLite, and MySQL)
Paths:
VLQ:
All versions of ffsphp with dependencies
ext-pdo Version *