Download the PHP package slam/mysql-php without Composer
On this page you can find all versions of the php package slam/mysql-php. 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 mysql-php
MySQL bin in PHP
PHP light version of mysql cli that comes with MySQL.
Why
- You are inside a PHP only environment, like a PHP Docker image
- You need to import a large mysql dump
- You don't have access to the native
mysqlclient
Performance
Speed is exactly the same of the original mysql binary thanks to streams usage.
Supported formats
| Input type | Example | Supported? |
|---|---|---|
mysqldump output |
as is | :heavy_check_mark: |
| Single query on single line | SELECT NOW(); |
:heavy_check_mark: |
| Single query on multiple lines | SELECTNOW(); |
:heavy_check_mark: |
| Multiple queries on separated single or multiple lines | SELECT NOW();SELECTNOW(); |
:heavy_check_mark: |
| Multiple queries on single line | SELECT NOW();SELECT NOW(); |
:x: |
Usage
The library provides two usages, the binary and the \SlamMysql\Mysql class.
From CLI
From PHP
\SlamMysql\Mysql::run accepts any type of resource consumable by fgets/fwrite functions.
Related projects
- ifsnop/mysqldump-php:
mysqldumpbinary port in pure PHP
All versions of mysql-php with dependencies
PHP Build Version
Package Version
Requires
php Version
~8.1.0 || ~8.2.0
ext-mysqli Version *
ext-mysqli Version *
The package slam/mysql-php contains the following files
Loading the files please wait ...