定制 rioagungpurnomo/dcobwebs 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

rioagungpurnomo/dcobwebs

最新稳定版本:v2.2.7

Composer 安装命令:

composer require rioagungpurnomo/dcobwebs

包简介

DCobwebs (Database Cobwebs) PHP framework to make it easier to process data and very simple NoSQL.

README 文档

README

DCobwebs

Total Downloads Latest Stable Version License

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.

统计信息

  • 总下载量: 22
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 8
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 8
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-27