Download the PHP package toutaphp/ogam-data-mapper without Composer
On this page you can find all versions of the php package toutaphp/ogam-data-mapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download toutaphp/ogam-data-mapper
More information about toutaphp/ogam-data-mapper
Files in toutaphp/ogam-data-mapper
Download toutaphp/ogam-data-mapper
More information about toutaphp/ogam-data-mapper
Files in toutaphp/ogam-data-mapper
Vendor toutaphp
Package ogam-data-mapper
Short Description A MyBatis-inspired SQL mapping framework for PHP. Write the SQL you want, map results to objects automatically.
License MIT
Homepage https://github.com/toutaio/toutaphp-ogam-data-mapper
Package ogam-data-mapper
Short Description A MyBatis-inspired SQL mapping framework for PHP. Write the SQL you want, map results to objects automatically.
License MIT
Homepage https://github.com/toutaio/toutaphp-ogam-data-mapper
Please rate this library. Is it a good library?
Informations about the package ogam-data-mapper
Touta Ogam - Data Mapper for PHP
Ogam (ᚑᚌᚐᚋ) is a MyBatis-inspired SQL mapping framework for PHP. Write the SQL you want, map results to objects automatically.
Ogam is the ancient Celtic alphabet used by Druids to inscribe sacred knowledge. Like Ogam mapped symbols to meaning, this library maps SQL results to PHP objects.
Features
- SQL-First: Write exactly the SQL you want, optimized for your use case
- Declarative Mapping: Configure how results become objects via XML or attributes
- Dynamic SQL: Build queries conditionally with
<if>,<foreach>,<where>,<set> - Type Handlers: Automatic conversion between PHP and SQL types (DateTime, Enums, JSON)
- Zero Magic: Every SQL executed is visible and predictable
- Framework Agnostic: Works standalone or with Symfony/Laravel
Requirements
- PHP 8.3+
- PDO extension
- MySQL, PostgreSQL, or SQLite
Installation
Quick Start
1. Define Your Entity
2. Data mapper configuration
3. Create XML Mapper
4. Define Mapper Interface
5. Use the Mapper
Documentation
- Configuration Guide
- SQL Mapping
- Dynamic SQL
- Result Mapping
- Type Handlers
- CLI Tool
Parameter Syntax
Ogam uses MyBatis-style parameter syntax:
Dynamic SQL
Why Ogam?
| vs Doctrine | Ogam Advantage |
|---|---|
| Hydration overhead | Constructor injection, no reflection |
| Hidden SQL | Full SQL visibility and control |
| Learning curve | Write SQL you know, not DQL |
| vs Eloquent | Ogam Advantage |
|---|---|
| Performance | 2-3x faster (no Active Record overhead) |
| SQL control | Write optimized SQL directly |
| Testability | Clean separation, no database for unit tests |
Part of Toutā Framework
Ogam is part of the Toutā Framework ecosystem:
- Toutā: Core framework
- Cosan: HTTP router
- Fíth: Template engine
- Nasc: Dependency injection
- Ogam: Data mapping (this library)
Each component works standalone or together.
Contributing
See CONTRIBUTING.md for guidelines.
License
MIT License. See LICENSE for details.
All versions of ogam-data-mapper with dependencies
PHP Build Version
Package Version
The package toutaphp/ogam-data-mapper contains the following files
Loading the files please wait ...