rioagungpurnomo/dcobwebs
Composer 安装命令:
composer require rioagungpurnomo/dcobwebs
包简介
DCobwebs (Database Cobwebs) PHP framework to make it easier to process data and very simple NoSQL.
README 文档
README
DCobwebs
DCobwebs (Database Cobwebs) PHP framework to make it easier to process data and very simple NoSQL.
Demo : View
Installation
Start to do the installation.
composer require rioagungpurnomo/dcobwebs
Example
A simple example of using DCobwebs and creating a users table containing name and bio fields.
require 'vendor/autoload.php'; use Rioagungpurnomo\Dcobwebs\Dcobwebs; Dcobwebs::add('users', ['name', 'bio']);
Create Data
Adding new data in a table.
Dcobwebs::table(table)->create(array);
Update Data
Updating data in a table.
Dcobwebs::table(table)->update(id, array);
Delete Data
Delete data in a table.
Dcobwebs::table(table)->delete(id);
Count Data
Counts how much data is in a table.
Dcobwebs::table(table)->count();
Find Data
Displays one data with a certain id in a table.
Dcobwebs::table(table)->find(id);
Where Data
Retrieve only certain data in the table.
Dcobwebs::table(table)->where(field, value);
All Data
Displays all data in a table.
Dcobwebs::table(table)->all();
ASC Data
Displays all data in a table by ASC (Ascending).
Dcobwebs::table(table)->asc(field);
DESC Data
Displays all data in a table by DESC (Descending).
Dcobwebs::table(table)->desc(field);
Create Table
Adding a new table in the database.
Dcobwebs::add(name, array);
List Table
Displays all tables in the database.
Dcobwebs::list();
Delete Table
Delete tables in the database.
Dcobwebs::remove(table);
Rename Table
Change the table name to the new table name in the database.
Dcobwebs::rename(old_name, new_name);
Count Table
Count how many tables are in the database.
Dcobwebs::calculate();
Create Field Table
Adding existing fields to tables in the database.
Dcobwebs::table(table)->create_field(array);
Delete Field Table
Delete existing fields in the table in the database.
Dcobwebs::table(table)->delete_field(field);
List Field Table
Displays the fields in the table in the database.
Dcobwebs::table(table)->list_field();
Security
Encrypt
Encrypt strings.
Dcobwebs::encrypt(plaintext, key, iv);
Decrypt
Decrypt strings.
Dcobwebs::decrypt(ciphertext, key, iv);
Donate
Contact me
Contact me via email: rioagungpurnomo@programmer.net, give me input or suggestions or request additional features for DCobwebs to become the number 1 tool for your help.
rioagungpurnomo/dcobwebs 适用场景与选型建议
rioagungpurnomo/dcobwebs 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 22 次下载、GitHub Stars 达 8, 最近一次更新时间为 2023 年 04 月 27 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 rioagungpurnomo/dcobwebs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 rioagungpurnomo/dcobwebs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 22
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 12
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-04-27
