https://github.com/warborn/orm
A simple PHP ORM that uses the ActiveRecord pattern
https://github.com/warborn/orm
Last synced: 8 months ago
JSON representation
A simple PHP ORM that uses the ActiveRecord pattern
- Host: GitHub
- URL: https://github.com/warborn/orm
- Owner: warborn
- Created: 2016-04-30T21:42:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2017-04-25T16:45:05.000Z (about 9 years ago)
- Last Synced: 2025-01-15T04:40:50.659Z (over 1 year ago)
- Language: PHP
- Homepage:
- Size: 20.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Titan
A simple PHP ORM like Rails ActiveRecord
Titan connects classes to relational database tables.
Titan relies heavily on naming conventions for classes and tables to establish mappings between and object and his table, primary keys and foreign keys. Although it supports manual configurations, it's recommended to follow naming conventions.
Features:
------------
- Automated mapping between classes and tables, attributes and columns.
- CRUD abstraction in form of methods.
- Generated methods for finding records by every column in the corresponding table of the object.
- Generated methods for creating and filling the foreign key of an object that is related to another object.
- File attaching (uploading/deletion) for an attribute of an object.
- Associations between objects defined by class attributes.
- Has one
- Has many
- Belongs to
- Has many through