Download the PHP package kristos80/pdo-factory without Composer
On this page you can find all versions of the php package kristos80/pdo-factory. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package pdo-factory
🏭 pdo-factory
Factory utility that creates a PDO
object from environment configuration.
Work in Progress (WIP) — Do not use in production yet:
- It has not undergone extensive testing.
- Primarily intended for internal projects, subject to potential breaking changes without prior notice.
- There are likely many missing features.
The following environmental variables can be used:
PDO_FACTORY_ADAPTER
specifies which adapter will be used and how the rest of the environmental variables are going to be collected. Default 'mysql'${PDO_FACTORY_ADAPTER}_HOSTNAME
default 'localhost'${PDO_FACTORY_ADAPTER}_PORT
defaultNULL
, fallbacks to the default port of each adapter${PDO_FACTORY_ADAPTER}_USERNAME
defaultNULL
${PDO_FACTORY_ADAPTER}_PASSWORD
defaultNULL
${PDO_FACTORY_ADAPTER}_DATABASE
defaultNULL
${PDO_FACTORY_ADAPTER}_CHARSET
defaultNULL
MySQL
specific
MYSQL_UNIX_SOCKET
defaultNULL
. If it existsMYSQL_HOSTNAME
andMYSQL_PORT
are ommited
Postgres
specific
POSTGRES_SSL_MODE
defaultNULL
. See more
Example usage
.env
db.php
All versions of pdo-factory with dependencies
PHP Build Version
Package Version
Requires
ext-pdo Version
*
php Version >=8.0
php Version >=8.0
The package kristos80/pdo-factory contains the following files
Loading the files please wait ....