maickwendelldev / crud_php
一个PHP单文件脚本,可以为MySQL、Firebird、PostgreSQL、SQL Server、SQLite或任何数据库添加CRUD功能。
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-26 01:12:49 UTC
README
📝 目录
🧐 简介
这是一个PHP的CRUD,旨在简化与所有现有数据库类型的连接,创建命令的标准化。代码设计良好,注释清晰。它使用直观的架构来确保逻辑和展示之间的清晰度。寻求确保存储数据的安全和充分的方法。轻量级且快速的引擎。支持缓存系统:"apc","array","database","file","memcached"和"redis"方法。Eloquent等等!
💎 一些特性
CRUD_PHP目前提供以下功能
- 使用PDO的MySQL CRUD系统
- 数据库+文件备份管理器
- 等等!
☑️ 要求
- 具有PHP的Web服务器
- 需要PHP 5.0+
- PHP依赖项
- php-curl -> 建议用于API。
- php-intl -> 建议用于SslCertificate。
- php-zip -> 这是备份管理器所必需的。
- crontab访问权限
- 数据库服务器
Processor: Anyone Frequency: 1.8GHz RAM: 8GB DDR3 Disks: 20 GB Bandwidth: 100Mbps traffic: unlimited
🖥️ 安装
要了解更多关于使用CRUD PHP的信息,我建议查看我们的wiki,点击这里。
NOTE: If you are running CRUD_PHP on change the following configs.
自动安装程序
CRUD_PHP安装程序。
支持的操作系统
- 所有(推荐)
Npm
npm install crud_php
Git
git clone https://github.com/maickwendelldev/CRUD_PHP.git
🖥️ 更新
即将推出
🚨 版本支持信息
🔐 安全
如果您发现任何与安全相关的问题,请通过电子邮件 maickwendelldev@gmail.com 而不是使用问题跟踪器来报告。
✍️ 贡献
帮助我们构建更好的CRUD,请将您的改进建议发送到电子邮件 maickwendelldev@gmail.com。
📝 许可证
CRUD_PHP是开源软件,许可证为MIT许可证。
根据许可证,不要从源代码文件中删除许可证
/**
* PHP PDO Mysql class.
* PHP Version 7.0.
* File Version 1.0.0.0
*
* @see https://github.com/maickwendelldev/CRUD_PHP.git - The CRUD_PHP GitHub project
*
* @author Maick Wendell (Merk/H4ck3r Sl4v3) - (original founder) <maickwendelldev@gmail.com>
* @copyright 2021 - 2022 Maick Wendell
* @license https://github.com/maickwendelldev/CRUD_PHP/blame/main/LICENSE - MIT License
* @note This program is distributed in the hope that it will be useful - WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE.
*/
或从footer
(可选)中的页脚中删除信用
<li>
<a href="https://github.com/maickwendelldev/CRUD_PHP.git" target="_blank" class="btn btn-xs btn-primary">CRUD PHP</a>
</li>
🖥️ 演示
为了工作,您需要编辑crud.php文件。(若要禁用PDO MySQL,请添加#)
//Put the database server host, by default we put ("localhost");
define("HOST","localhost");
//Put the user who has access to the database server, by default we put ("root");
define("USER","root");
//Put the user password, by default we put empty ("");
define("PASS","");
//Put the name of the database, which has the access, by default we put "Teste";
define("BASE","Teste");
//Put the charset, by default we put "utf8";
define("CHARSET","utf8");
//Now select the type of database, for that remove the #. (You can only leave one active);
//##################################################################//
//-------------------------- PDO Firebird --------------------------//
#include("1connect/PDO_Firebird.php"); //PDO Firebird;
//-------------------------- PDO Mysql -----------------------------//
include("1connect/PDO_Mysql.php"); //PDO Mysql;
您可以将以下示例包含到您的项目中。
<!DOCTYPE html>
<?php include("ProjectPath/CRUD_PHP/crud.php"); //You can use (include_once, include, require_once, require) ?>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
<?php $DBconnect->getList("table", true); //List all in the table ?>
</body>
</html>
💬 赞助商可以与我们聊天
URL: https://discord.gg/ - 即将推出
✨ 赞助商 UNIT3D(HDInnovations / HDVinnie)
如果您喜欢这个工作,可以支持它,这有助于我们及时修复问题和添加新功能。同时也有助于支付演示服务器和域名的费用。
每月定期
https://github.com/sponsors/maickwendelldev?frequency=recurring&sp onsor=maickwendelldev
一次性自定义金额
https://github.com/sponsors/maickwendelldev?frequency=one-time&sp onsor=maickwendelldev