PHPackages                             rnr1721/le7-db-redbean - 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. [Framework](/categories/framework)
4. /
5. rnr1721/le7-db-redbean

ActiveLibrary[Framework](/categories/framework)

rnr1721/le7-db-redbean
======================

Redbean PHP that allow easy use of this ORM in any PHP project

1.0.8(2y ago)0391MITPHPPHP &gt;=8.1

Since May 16Pushed 2y ago2 watchersCompare

[ Source](https://github.com/rnr1721/le7-db-redbean)[ Packagist](https://packagist.org/packages/rnr1721/le7-db-redbean)[ RSS](/packages/rnr1721-le7-db-redbean/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (10)Used By (1)

le7-db-redbean
==============

[](#le7-db-redbean)

Allow easy use pagination, validation and normalisation in any PHP project that use Redbean PHP

Requirements
------------

[](#requirements)

- PHP 8.1 or higher.
- Composer 2.0 or higher

Dependencies
------------

[](#dependencies)

All dependencies installs automatic by composer

- RedbeanPHP ()
- Entify Entity Framework ()

What it can?
------------

[](#what-it-can)

- Easy-to-use models classes in some namespace
- Pagination using Entify entity framework
- Validation using rules (using Entify entity framework)
- use arrow RedbeanPHP method calls instead static methods
- Contain very simple lightweight SQL query builder

Installation
------------

[](#installation)

```
composer require rnr1721/le7-db-redbean
```

Testing
-------

[](#testing)

```
composer test
```

How it works?
-------------

[](#how-it-works)

After installing, you need decide where will be your models. For example in \\Model. Any model is class, that contain entity rules. IMPORTANT: validation rules must contain information about all entity fields. Required fields is "label" and "validate". Any other fields is optional. All models must be extends of Model and implements ModelInterface same as in this example below:

Example of model (in namespace Model):

```
