Download the PHP package geeshoe/dblib without Composer

On this page you can find all versions of the php package geeshoe/dblib. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package dblib

DbLib

DbLib is a PHP library intended to make it easier to work with MySQL/MariaDb databases within your project.

Please note that this project is in initial development and as such, some documentation may be incomplete.

Getting Started

DbLib is intended to be fully compliant with PSR-1, PSR-2, & PSR-4

Prerequisites

DbLib works with both MySQL and MariaDb.

To check if the above PHP extension's are enabled, run the following command in the CLI or add it to a page in your web root...

Installing

To add DbLib to your project, run:

If you prefer to use the development branch of dblib-php, use following line of code in the composer.json file.

Note: The development branch of DbLib is unstable at times and therefor not recommended in a production environment.

Configure

DbLib Configuration parameters can be set using various formats. However, JSON is the only format currently supported out of the box. Other formats such as .env, yaml, etc.. are soon to follow.

It is possible to brew your own config adapter using the AbstractConfigObject in the meantime.

Copy the included dblibConfig_DIST.json to a secure location outside of your projects web root.

Change the values to reflect your database configuration.

The param is not required. If the database is not specified in the config file, you must explicitly declare the database to use in your SQL statements.

I.e.

PDO Attributes are not fully supported in the current release. The ability to use attributes is provided but has not yet been implemented in DbLib automatically. This is currently at the top of the development list to bring back PDO Attributes as before. Full support for attributes is intended for the next major release, if not sooner.

PDO Attributes can be set in the config file as demonstrated above. More than one attribute can be set as follows:

Persistent Connections are planned in the future for DbLib, but currently are not supported. Because DbLib does not explicitly close PDO connections, it is possible to extend the DbLib class and override the method to set .

Documentation

API & usage documentation is soon to come.

Authors

Source available at (https://github.com/geeshoe)

For questions, comments, or rant's, drop me a line at


All versions of dblib with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
ext-pdo_mysql Version *
ext-pdo Version *
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package geeshoe/dblib contains the following files

Loading the files please wait ....