Download the PHP package plasma/driver-mysql without Composer

On this page you can find all versions of the php package plasma/driver-mysql. 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 driver-mysql

Plasma Driver MySQL/MariaDB Build Status Build Status Code Coverage

Plasma provides an asynchronous, non-blocking (data access) Database Abstraction Layer. This is the MySQL/MariaDB driver for Plasma.

The driver uses ReactPHP to asychronously interface with the database server.

The driver supports setting a connection charset through the driver options, it should be noted that the default is utf8mb4 (UTF-8), which is a character set you should use all the way through.

It should also be noted, that MySQL versions, which support the FOUND_ROWS flag, can return a non-zero value when using StreamQueryResultInterface::getAffectedRows() for SELECT queries.

Getting Started

You can install this component by using composer. The command is

After you've used composer to install the components and the dependencies, you get started by creating an instance of the factory.

The factory takes a loop instance and an array of options (see the factory class documentation for the available options).

The factory also gives you the ability to asychronously interface with the filesystem using react/filesystem, if a LOCAL INFILE request ever occurres.

Additionally you can create your own auth plugins, if your database server uses an authentication plugin this driver doesn't support (yet).

Unix socket connections are supported using the unix:// scheme, so the example connect uri would look like this.

When using unix socket connections without a database, a trailing slash is required. When using localhost as unix socket path, the default mysql path will be used.

Cursors

MySQL supports cursors since 5.7 (MariaDB 10.3). As such the driver will reject MySQL versions below 5.7, respectively MariaDB 10.3, as they do not support cursors (even though the capabilities may say otherwise).

If known at driver method call time, the driver will throw a LogicException, or postpone it and reject the promise with a LogicException.

Compression

By default packet compression is enabled and all packets equal to or larger than 50 bytes are automatically compressed (as long as zlib is available). This can be disabled using the compression.enable flag.

Server OK Response Messages

The driver exposes every OK response message packet of the server through a Plasma Client event called serverOkMessage. The argument is an instance of Messages\OkResponseMessage.

As such advanced users can check the status of the server and perform certain actions, or just log it for pure statistics purposes.

Type Extensions

This driver uses a type extensions manager registered under the name driver-mysql. When decoding rows received from the database, the type extensions can get two different type of values to decode, depending on the used protocol.

When using the text protocol (regular queries), then the type extensions get the raw value as string.

However when using the binary protocol (prepared statements), then the type extensions get the used \Plasma\BinaryBuffer instance. It must be used with care. Reading too much from it can lead into dropped row, because the remaining fields can not be properly decoded.

Documentation

https://plasmaphp.github.io/driver-mysql/


All versions of driver-mysql with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-bcmath Version *
ext-mbstring Version *
plasma/binary-buffer Version ^0.1.0|dev-master
plasma/core Version ^0.4.0|^0.3.0|dev-master
evenement/evenement Version ^3.0|^2.0
obsidian/validation Version ^0.1.0
react/event-loop Version ^1.0|^0.5|^0.4
react/promise Version ^2.7
react/socket Version ^1.1
react/stream Version ^1.0
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 plasma/driver-mysql contains the following files

Loading the files please wait ....