PHPackages                             prochst/bs-orm - 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. prochst/bs-orm

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

prochst/bs-orm
==============

Simple, lightweight ORM for PHP with multi-language support, relations, and migrations

v1.0.0(3mo ago)01MITPHPPHP &gt;=8.1

Since Feb 10Pushed 2mo agoCompare

[ Source](https://github.com/prochst/bs-orm)[ Packagist](https://packagist.org/packages/prochst/bs-orm)[ RSS](/packages/prochst-bs-orm/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

BS ORM
======

[](#bs-orm)

Simple, lightweight ORM for PHP with multi-language support, relations, and migrations.

Features
--------

[](#features)

- ✅ **Active Record &amp; Repository Pattern** - Choose the pattern that fits your needs
- ✅ **Type-Safe** - Full PHP 8.1+ type support with custom types
- ✅ **Relations** - HasOne, HasMany, BelongsTo, BelongsToMany
- ✅ **Multi-Language** - Built-in internationalization for labels, placeholders, help texts
- ✅ **Migrations** - Database schema versioning
- ✅ **Eager Loading** - Solve N+1 query problems
- ✅ **Change Tracking** - Only update modified fields
- ✅ **Validation** - Built-in and custom validators
- ✅ **Database Agnostic** - Works with MySQL, PostgreSQL, SQLite
- ✅ **PDO Based** - No external dependencies

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

[](#installation)

```
composer require prochst/bs-orm
```

Documentation
-------------

[](#documentation)

For detailed documentation, guides, and examples, see [docs/README.md](docs/README.md).

Quick Start
-----------

[](#quick-start)

### 1. Define Your Entity

[](#1-define-your-entity)

```
