Download the PHP package mathsgod/light-db without Composer
On this page you can find all versions of the php package mathsgod/light-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package light-db
Light-DB
Light-DB is a lightweight ORM/database access layer for PHP 8.1+ based on Laminas DB. It supports automatic Model mapping, querying, relationships, JSON column operations, and is suitable for rapid modern PHP application development.
Features
- Based on Laminas DB, supports multiple databases
- Eloquent-like Model operation experience
- Automatic conversion and Proxy operation for JSON columns
- Supports relationship queries, dynamic queries, aggregation functions
- PHPUnit test support
Installation
Configuration
Create a .env
file in your project root with the following content:
Basic Usage
Define a Model
Create Data
Query Data
Update Data
Delete Data
JSON Column Operation
Relationship Query
Assuming you have a UserList Model with a user_id column:
Testing
License
MIT License
All versions of light-db with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-pdo Version *
vlucas/phpdotenv Version *
illuminate/collections Version ^10.48
laminas/laminas-db Version ^2.20
laminas/laminas-paginator Version ^2.19
ext-pdo Version *
vlucas/phpdotenv Version *
illuminate/collections Version ^10.48
laminas/laminas-db Version ^2.20
laminas/laminas-paginator Version ^2.19
The package mathsgod/light-db contains the following files
Loading the files please wait ....