Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bragful/ephp_mysql
MySQL Client Library for ePHP (Bragful)
https://github.com/bragful/ephp_mysql
bragful ephp erlang interpreter mysql php-library
Last synced: 2 days ago
JSON representation
MySQL Client Library for ePHP (Bragful)
- Host: GitHub
- URL: https://github.com/bragful/ephp_mysql
- Owner: bragful
- License: lgpl-2.1
- Created: 2017-08-05T02:09:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-08T01:15:34.000Z (almost 5 years ago)
- Last Synced: 2024-11-09T09:33:23.736Z (about 2 months ago)
- Topics: bragful, ephp, erlang, interpreter, mysql, php-library
- Language: Erlang
- Size: 1.4 MB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
README
# ePHP MySQL #
Copyright (c) 2017-2019 Altenwald Solutions, S.L.
__Authors:__ "Manuel Rubio" ([`[email protected]`](mailto:[email protected])).
[![Build Status](https://img.shields.io/travis/bragful/ephp_mysql/master.svg)](https://travis-ci.org/bragful/ephp_mysql)
[![Codecov](https://img.shields.io/codecov/c/github/bragful/ephp_mysql.svg)](https://codecov.io/gh/bragful/ephp_mysql)
[![License: LGPL 2.1](https://img.shields.io/github/license/bragful/ephp_mysql.svg)](https://raw.githubusercontent.com/bragful/ephp_mysql/master/COPYING)This library implements the MySQL client library functions as is in PHP code for [ephp](https://github.com/bragful/ephp) keeping in mind to have it as pure 100% Erlang.
### Requirements ###
ePHP MySQL requires to be run over an Erlang/OTP 18+, but not all the versions are full compatible or recommended. See the list:
| Erlang Version | Support | Notes |
|:---|:---:|:---|
| 22.0 | :heavy_check_mark: | Recommended if you use OTP 22 |
| 21.3 | :heavy_check_mark: | Recommended if you use OTP 21 |
| 21.2 | :heavy_check_mark: | |
| 21.1 | :heavy_check_mark: | |
| 21.0 | :heavy_check_mark: | |
| 20.3 | :x: | fail SSL and number conversion. |
| 20.2 | :heavy_check_mark: | Recommended if you use OTP 20 |
| 20.1 | :heavy_check_mark: | |
| 20.0 | :heavy_check_mark: | |
| 19.3 | :heavy_check_mark: | Recommended if you use OTP 19 |
| 19.2 | :heavy_check_mark: | |
| 19.1 | :heavy_check_mark: | |
| 19.0 | :heavy_check_mark: | |
| 18.3 | :heavy_check_mark: | Recommended if you use OTP 18 |
| 18.2.1 | :heavy_check_mark: | |
| 18.2 | :heavy_check_mark: | |
| 18.1 | :heavy_check_mark: | |
| 18.0 | :heavy_check_mark: | |### Getting Started ###
A simple way to use, is include in your project `rebar.config` the following dependency line:
```erlang
{ephp_mysql, {git, "git://github.com/bragful/ephp_mysql.git", master}}
```And use the following code in your project:
```erlang
{ok, Ctx} = ephp:context_new(),
ephp:register_module(Ctx, ephp_lib_vars),
ephp:register_module(Ctx, ephp_lib_mysqli),
PHP = "
array(1) {
[0]=>
string(3) "100"
}
}
{ok,false}
```
Enjoy!## Modules ##
ephp_class_mysqli
ephp_class_mysqli_result
ephp_lib_mysqli
ephp_mysql