imranertaza/simple-php-crud

This is a very simple php crud package.

1.1.1 2024-04-16 05:09 UTC

This package is auto-updated.

Last update: 2024-04-16 05:21:59 UTC


README

This is a simple open-source PHP library that provides a basic implementation of CRUD operations using Object-Oriented Programming (OOP) principles.

Features

  • Create: Add new records to the database.
  • Read: Retrieve records from the database.
  • Update: Modify existing records in the database.
  • Delete: Remove records from the database.

Example

$crud = new Crud("TableName");

$x = $crud->groupStart()
    ->where(['a' =>'a'],"!=")
    ->NotGroupStart()
    ->orWhere('b', "=",'b')
    ->where('c', "=",'c')
    ->groupEnd()
    ->groupEnd()
    ->where('d', "=",'d')->get();