nineton-nasa/norm
Composer 安装命令:
composer require nineton-nasa/norm
包简介
A Basic ORM and DB library
README 文档
README
Norm is an ORM library written in PHP language. It provides a convenient way to connect to databases and map objects to database tables. The library aims to provide a simple and easy-to-use API, allowing developers to create and manipulate databases with ease.
Installation
Install using Composer:
composer require nineton-nasa/norm
Creating Model & Mapper
1. Create a Database Configuration File
Create a .norm-db.ini file in the same directory as the vendor directory, and modify the corresponding parameters (file content reference .norm-db.example.ini).
[DATABASE] TYPE = mysql HOSTNAME = 127.0.0.1 HOSTPORT = 3306 DATABASE = db-name USERNAME = root PASSWORD = password CHARSET = utf8mb4
2. Execute Commands
Execute the following commands in the vendor directory, and enter the corresponding parameters as prompted:
./bin/norm-create
Features
The main features of Norm ORM Library are:
- Map objects to database tables
- Access data in database tables through model classes
- Support complex queries
- Support transaction processing
Contributors
Norm is an open-source project, and all developers are welcome to participate. If you find any errors or defects, please submit an issue or pull request.
License
Norm is licensed under the MIT license. See LICENSE for the full license text.
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-09-08