Download the PHP package hakuryo/database-client without Composer
On this page you can find all versions of the php package hakuryo/database-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hakuryo/database-client
More information about hakuryo/database-client
Files in hakuryo/database-client
Download hakuryo/database-client
More information about hakuryo/database-client
Files in hakuryo/database-client
Vendor hakuryo
Package database-client
Short Description A simple database client with a lot a helper function
License MIT
Package database-client
Short Description A simple database client with a lot a helper function
License MIT
Please rate this library. Is it a good library?
Informations about the package database-client
Patch Note
2.1.0
feature
- Add trackBy param to search function. This param will replace the auto index key of the array by the value of the key for the corresponding line.
exemple:
2.0.0 (Breaking changes)
feature
- Add callback param to "get" and "search" to act on lines when they are read.
- Add property lastRowCount to store last UPDATE/INSERT/DELETE rowCount
- Function bindValues now affect SQL type on "boolean","string","int","null" param where preparing a query.
change
- Now require php8.1 or above
- Now require hakuryo/config-parser
- Changing naming convention from snake_case to camelCase
- Removing internal class ConfigParser to use hakuryo/config-parser instead
- Removing query type checks for "get","modify","search" function
fix
- Some optimization when reading database results
1.5.0
- Add CHARSET param to config parser.
- removing default utf8 charset for mysql. you must now use CHARSET config param.
1.4.3
- Fix Forcing utf8 queries for dblib driver
1.4.2
- Update composer.json for php8+ compatibility
1.4.1
- Fix space in oci / dblib dsn build
1.4.0
- Add call function to preform SQL procedure calls
1.3.0
- Refactoring ConfigParser
- Add support for
pgsl
anddblib
drivers - Now checking if provided driver is installed with PDO::getAvailableDrivers function
- Add support for
1.2.1
- Allowed "Truncate" keyword in modify request.
1.2.0
- Add $classname param to search and get function. If set, these function will return database line as $classname object. (POD::FETCH_CLASS)
1.1.0 (Breaking changes)
- Remove $assoc variable from fucntion search,get,modify. Theses function now detect automatically if provided array is associative or not.
Install
composer require hakuryo/database-client
Dependencies
Mandatory
- PHP >= 7.x
Optionnal
Only If you want to use ConnectionDB to connect to an ORACLE database
- Oracle Instantclient
- PHP PDO_OCI
- php-sybase
- php-pgsql
Features
- Parsing client config from INI and JSON file
Usage & exemples
Exemple INI file
Exemple JSON file
ConnectionDB usage
All versions of database-client with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-pdo Version *
ext-json Version *
ext-fileinfo Version *
hakuryo/config-parser Version ^1.0
ext-pdo Version *
ext-json Version *
ext-fileinfo Version *
hakuryo/config-parser Version ^1.0
The package hakuryo/database-client contains the following files
Loading the files please wait ....