Skip to content

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

License

Notifications You must be signed in to change notification settings

rioagungpurnomo/dcobwebs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: [email protected], give me input or suggestions or request additional features for DCobwebs to become the number 1 tool for your help.