DCobwebs (Database Cobwebs) PHP framework to make it easier to process data and very simple NoSQL.
Demo : View
Start to do the installation.
composer require rioagungpurnomo/dcobwebs
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']);
Adding new data in a table.
Dcobwebs::table(table)->create(array);
Updating data in a table.
Dcobwebs::table(table)->update(id, array);
Delete data in a table.
Dcobwebs::table(table)->delete(id);
Counts how much data is in a table.
Dcobwebs::table(table)->count();
Displays one data with a certain id in a table.
Dcobwebs::table(table)->find(id);
Retrieve only certain data in the table.
Dcobwebs::table(table)->where(field, value);
Displays all data in a table.
Dcobwebs::table(table)->all();
Displays all data in a table by ASC (Ascending).
Dcobwebs::table(table)->asc(field);
Displays all data in a table by DESC (Descending).
Dcobwebs::table(table)->desc(field);
Adding a new table in the database.
Dcobwebs::add(name, array);
Displays all tables in the database.
Dcobwebs::list();
Delete tables in the database.
Dcobwebs::remove(table);
Change the table name to the new table name in the database.
Dcobwebs::rename(old_name, new_name);
Count how many tables are in the database.
Dcobwebs::calculate();
Adding existing fields to tables in the database.
Dcobwebs::table(table)->create_field(array);
Delete existing fields in the table in the database.
Dcobwebs::table(table)->delete_field(field);
Displays the fields in the table in the database.
Dcobwebs::table(table)->list_field();
Encrypt strings.
Dcobwebs::encrypt(plaintext, key, iv);
Decrypt strings.
Dcobwebs::decrypt(ciphertext, key, iv);
Contact me via email: [email protected], give me input or suggestions or request additional features for DCobwebs to become the number 1 tool for your help.