PHPackages                             guilhermeabel/matcha-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. guilhermeabel/matcha-orm

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

guilhermeabel/matcha-orm
========================

A lightweight and flexible Object-Relational Mapping (ORM) library for PHP

02PHP

Since Jul 12Pushed 2y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Matcha ORM 🚀 (Work in progress 🚧)
=================================

[](#matcha-orm--work-in-progress-)

[![PHP](https://camo.githubusercontent.com/e1ac7b973e3b63cd3d3b66851799d30de6f1d5f251802e6f55d881e885b337c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c75653f7374796c653d666c61742d737175617265266c6f676f3d706870)](https://camo.githubusercontent.com/e1ac7b973e3b63cd3d3b66851799d30de6f1d5f251802e6f55d881e885b337c6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d253345253344253230382e312d626c75653f7374796c653d666c61742d737175617265266c6f676f3d706870)

Matcha ORM is a lightweight and flexible Object-Relational Mapping (ORM) library for PHP. It provides an easy-to-use API for working with relational databases, enabling developers to interact with data through an object-oriented approach.

Features ✨
----------

[](#features-)

- ✅ CRUD operations (Create, Read, Update, Delete)
- 🗺️ Mapping classes to database tables and properties to columns
- 🔍 Querying and filtering data
- 📦 Migrations and schema management (coming soon...)
- 🧑‍🤝‍🧑 Relationships between entities (one-to-one, one-to-many, many-to-many)
- 🚛 Lazy and eager loading
- 🔄 Transactions and concurrency control

Installation 📦
--------------

[](#installation-)

You can install Matcha ORM using Composer:

`composer require guilhermeabel/matcha-orm`

Getting Started 🏁
-----------------

[](#getting-started-)

To get started, you have to define your database connection constants:

```
