{"id":19165125,"url":"https://github.com/bragful/ephp_mysql","last_synced_at":"2026-05-15T13:04:39.032Z","repository":{"id":75519677,"uuid":"99392788","full_name":"bragful/ephp_mysql","owner":"bragful","description":"MySQL Client Library for ePHP (Bragful)","archived":false,"fork":false,"pushed_at":"2020-01-08T01:15:34.000Z","size":1463,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T23:41:28.849Z","etag":null,"topics":["bragful","ephp","erlang","interpreter","mysql","php-library"],"latest_commit_sha":null,"homepage":null,"language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bragful.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["manuel-rubio"],"patreon":"altenwald","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2017-08-05T02:09:06.000Z","updated_at":"2020-11-06T10:59:01.000Z","dependencies_parsed_at":"2023-06-06T17:45:22.732Z","dependency_job_id":null,"html_url":"https://github.com/bragful/ephp_mysql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bragful/ephp_mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bragful","download_url":"https://codeload.github.com/bragful/ephp_mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bragful%2Fephp_mysql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bragful","ephp","erlang","interpreter","mysql","php-library"],"created_at":"2024-11-09T09:26:35.058Z","updated_at":"2026-05-15T13:04:39.007Z","avatar_url":"https://github.com/bragful.png","language":"Erlang","funding_links":["https://github.com/sponsors/manuel-rubio","https://patreon.com/altenwald"],"categories":[],"sub_categories":[],"readme":"\n\n# ePHP MySQL #\n\nCopyright (c) 2017-2019 Altenwald Solutions, S.L.\n\n__Authors:__ \"Manuel Rubio\" ([`manuel@altenwald.com`](mailto:manuel@altenwald.com)).\n\n[![Build Status](https://img.shields.io/travis/bragful/ephp_mysql/master.svg)](https://travis-ci.org/bragful/ephp_mysql)\n[![Codecov](https://img.shields.io/codecov/c/github/bragful/ephp_mysql.svg)](https://codecov.io/gh/bragful/ephp_mysql)\n[![License: LGPL 2.1](https://img.shields.io/github/license/bragful/ephp_mysql.svg)](https://raw.githubusercontent.com/bragful/ephp_mysql/master/COPYING)\n\nThis 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.\n\n\n### \u003ca name=\"Requirements\"\u003eRequirements\u003c/a\u003e ###\n\nePHP MySQL requires to be run over an Erlang/OTP 18+, but not all the versions are full compatible or recommended. See the list:\n\n| Erlang Version | Support | Notes |\n|:---|:---:|:---|\n| 22.0 | :heavy_check_mark: | Recommended if you use OTP 22 |\n| 21.3 | :heavy_check_mark: | Recommended if you use OTP 21 |\n| 21.2 | :heavy_check_mark: | |\n| 21.1 | :heavy_check_mark: | |\n| 21.0 | :heavy_check_mark: | |\n| 20.3 | :x: | fail SSL and number conversion. |\n| 20.2 | :heavy_check_mark: | Recommended if you use OTP 20 |\n| 20.1 | :heavy_check_mark: | |\n| 20.0 | :heavy_check_mark: | |\n| 19.3 | :heavy_check_mark: | Recommended if you use OTP 19 |\n| 19.2 | :heavy_check_mark: | |\n| 19.1 | :heavy_check_mark: | |\n| 19.0 | :heavy_check_mark: | |\n| 18.3 | :heavy_check_mark: | Recommended if you use OTP 18 |\n| 18.2.1 | :heavy_check_mark: | |\n| 18.2 | :heavy_check_mark: | |\n| 18.1 | :heavy_check_mark: | |\n| 18.0 | :heavy_check_mark: | |\n\n\n### \u003ca name=\"Getting_Started\"\u003eGetting Started\u003c/a\u003e ###\n\nA simple way to use, is include in your project `rebar.config` the following dependency line:\n\n```erlang\n    {ephp_mysql, {git, \"git://github.com/bragful/ephp_mysql.git\", master}}\n```\n\nAnd use the following code in your project:\n\n```erlang\n{ok, Ctx} = ephp:context_new(),\nephp:register_module(Ctx, ephp_lib_vars),\nephp:register_module(Ctx, ephp_lib_mysqli),\nPHP = \"\u003c?php \"\n      \"$id = mysqli_connect(\\\"localhost\\\", \\\"root\\\", \\\"root\\\", \\\"ephp_mysql\\\"); \"\n      \"var_dump(mysql_fetch_all(mysqli_query($id, 'SELECT 100')));\"\n      \"mysqli_close($id);\",\n{ok, Text} = ephp:eval(Ctx, PHP).\n```\n\nThe result stored in `Text` should be:\n\n```\narray(1) {\n  [0]=\u003e\n  array(1) {\n    [0]=\u003e\n    string(3) \"100\"\n  }\n}\n{ok,false}\n```\nEnjoy!\n\n\n## Modules ##\n\n\n\u003ctable width=\"100%\" border=\"0\" summary=\"list of modules\"\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"http://github.com/bragful/ephp_mysql/blob/master/doc/ephp_class_mysqli.md\" class=\"module\"\u003eephp_class_mysqli\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"http://github.com/bragful/ephp_mysql/blob/master/doc/ephp_class_mysqli_result.md\" class=\"module\"\u003eephp_class_mysqli_result\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"http://github.com/bragful/ephp_mysql/blob/master/doc/ephp_lib_mysqli.md\" class=\"module\"\u003eephp_lib_mysqli\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\n\u003ctr\u003e\u003ctd\u003e\u003ca href=\"http://github.com/bragful/ephp_mysql/blob/master/doc/ephp_mysql.md\" class=\"module\"\u003eephp_mysql\u003c/a\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragful%2Fephp_mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbragful%2Fephp_mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbragful%2Fephp_mysql/lists"}