taskinbirtan/json-to-mysql-table
最新稳定版本:0.0.1
Composer 安装命令:
composer require taskinbirtan/json-to-mysql-table
包简介
Convert JSON data to MySQL table
README 文档
README
JsonToMysqlTable is a PHP library for converting JSON data to MySQL database table. It provides a simple and flexible way to create a MySQL table from a JSON object.
Installation
You can install the library using Composer. If you don't already have Composer installed, you can download it from https://getcomposer.org/.
composer require taskinbirtan/json-to-mysql-table
require_once 'vendor/autoload.php'; use TaskinBirtan\JsonToMysqlTable\JsonToMysqlTable; // create a new instance of the JsonToMysqlTable class $jsonToMysqlTable = new JsonToMysqlTable(); // convert the JSON data to a MySQL table $json = file_get_contents('example.json'); $tableName = 'example_table'; $jsonToMysqlTable->convert($json, $tableName);
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2023-04-06