Download the PHP package jelix/dao without Composer
On this page you can find all versions of the php package jelix/dao. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package dao
Short Description Lightweight object relation mapping based on the Database Access Object pattern
License LGPL-2.1
Homepage https://jelix.org
Informations about the package dao
JelixDao
A lightweight object relation mapping based on the Database Access Object pattern.
It uses JelixDatabase as database connector.
installation
You can install it from Composer. In your project:
Usage
First create a file article.xml
describing the mapping:
Then use the JelixDao API to manipulate objects:
Main features
- Database type abstraction
- support of schema into table names (ignored in database that don't support schemas)
- Generate PHP classes for record, and for factories. Factory classes implement SQL queries that are mostly generated during compilation time, so they are not generated each time you call factories API.
- Generated factory classes have some common methods, but can also have custom methods (so custom queries) declared into the dao file
- Generated factory classes and record classes can inherits from your own classes.
- A dao file can import the definition of an other dao file
- support of json types: json content can be decoded/encoded dynamically, to/from anonymous object or your own classes.
- support of events: generated methods can dispatch an event before or after the query
- support of a listener class (hooks)
- support of automatic encoding/decoding for json fields
Requirements
One of these database servers:
- Postgresql 13+
- Mysql 8+
- Sqlite, SQLServer
- Oracle (support not actively tested, help needed ;-))
Documentation
The documentation is available into the docs directory.
History
This library has been extracted from the Jelix framework 1.7/1.8, and has been modernized a bit since. Except class names, API of factories and records are mostly the same. The XML format of dao file is the same as in Jelix 1.6/1.7/1.8.
All versions of dao with dependencies
ext-simplexml Version *
ext-dom Version *
ext-iconv Version *
psr/log Version ^1.1.2
jelix/database Version 1.x-dev
jelix/file-utilities Version ^1.8.4