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

v2.2.7 2023-04-28 06:06 UTC

This package is auto-updated.

Last update: 2024-12-15 09:11:32 UTC


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.