PHPackages                             rashidfarif/simple\_php\_crud - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rashidfarif/simple\_php\_crud

ActiveLibrary[Database &amp; ORM](/categories/database)

rashidfarif/simple\_php\_crud
=============================

this library perform crud operations width build in template or using functions

00PHP

Since Feb 23Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Rashid-Farid786/Simple_Crud_Opration_Width_PHP)[ Packagist](https://packagist.org/packages/rashidfarif/simple_php_crud)[ RSS](/packages/rashidfarif-simple-php-crud/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Crud\_Opration\_Width\_PHP
==========================

[](#crud_opration_width_php)

#### One file Perform Crud operation Easy

[](#one-file-perform-crud-operation-easy)

#### in This File All Crud Operation Created Like

[](#in-this-file-all-crud-operation-created-like)

#### select table one paramer is table name

[](#select-table-one-paramer-is-table-name)

```
settable($table)

```

#### return current table name no param requered

[](#return-current-table-name-no-param-requered)

```
gettable()

```

#### Select All Data From Data Base return object no param

[](#select-all-data-from-data-base-return-object-no-param)

```
all()

```

#### Find and data With id and return object with data.passed id where data find in database

[](#find-and-data-with-id-and-return-object-with-datapassed-id-where-data-find-in-database)

```
find($id)

```

#### Insert data to database and return object width insert row id.the array keys database colums name and value where insert in database

[](#insert-data-to-database-and-return-object-width-insert-row-idthe-array-keys-database-colums-name-and-value-where-insert-in-database)

```
insert(array())

```

#### Update data from database.the array keys are database fields names and the value where updated to.the second param is id where data update

[](#update-data-from-databasethe-array-keys-are-database-fields-names-and-the-value-where-updated-tothe-second-param-is-id-where-data-update)

```
update(array(),$id)

```

#### delete data where row id passed in and return object width deleted row in

[](#delete-data-where-row-id-passed-in-and-return-object-width-deleted-row-in)

```
delete($id)

```

example :
---------

[](#example-)

```
require_once "connection.php";
$con=new connection(host_name,user_name,password,database_name);
$con->settable(table_name);
$con->all();

```

#### Error handler is Created in this File if error accur then eroor handler Call Automatically

[](#error-handler-is-created-in-this-file-if-error-accur-then-eroor-handler-call-automatically)

Example :
---------

[](#example--1)

```
require_once "connection.php";
$con=new connection("host","user","password","db_name");
$con->settable("test");
$con->all();

```

output :
--------

[](#output-)

#### Table 'db\_name.test' doesn't exist on line number 3

[](#table-db_nametest-doesnt-exist-on-line-number-3)

#### also html popup error oe success message javaScript function available the function name Is mesaage(message,error/success)

[](#also-html-popup-error-oe-success-message-javascript-function-available-the-function-name-is-mesaagemessageerrorsuccess)

#### and the popup tag css available in it.

[](#and-the-popup-tag-css-available-in-it)

example :
---------

[](#example--2)

```

message("Error Found","error");

```

#### this message tag Show top right corner in the web page

[](#this-message-tag-show-top-right-corner-in-the-web-page)

###  Health Score

12

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9f503a09f5e027b98a8f5a4c4ab3def368215166dfee616c151dae44d27201c?d=identicon)[Rashid-Farid786](/maintainers/Rashid-Farid786)

---

Top Contributors

[![Rashid-Farid786](https://avatars.githubusercontent.com/u/128982123?v=4)](https://github.com/Rashid-Farid786 "Rashid-Farid786 (39 commits)")

### Embed Badge

![Health badge](/badges/rashidfarif-simple-php-crud/health.svg)

```
[![Health](https://phpackages.com/badges/rashidfarif-simple-php-crud/health.svg)](https://phpackages.com/packages/rashidfarif-simple-php-crud)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M541](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M208](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
