Cough is an extremely lightweight PHP ORM framework for dealing with objects that have single table counterparts in a database. Cough is built to be easy to learn, use, and extend.
Cough generates all the code you need for managing the object model-to-relational model mapping. This includes simple methods for all your CRUD functionality. This also includes Cough Collection classes that represent the relationships between tables in your data model.
Unlike many other ORM frameworks (in PHP and other languages), Cough doesn't control how you handle your views and controllers. In an MVC application, it intends to only be the model, or a portion of the model. Because of this, it is an excellent choice for projects that involve custom development that must integrate with other existing applications.
Cough is an open source software project and is driven by community contributions.
View full history Series and milestones
trunk series is the current focus of development.
All bugs Latest bugs reported
-
Bug #613851: Circular references and PHP's memory management
Reported -
Bug #458371: Can't use remove() in a loop
Reported -
Bug #347901: Handling of magic_quotes_gpc is wrong
Reported -
Bug #340114: concrete classes should include generated classes
Reported -
Bug #297308: hasKeyId returns wrong value
Reported
All blueprints Latest blueprints
-
generate from sql/ddl file
Registered -
Add DB alias config option
Registered -
dynamically generate object setters/getters/loaders via __call
Registered -
Refactor Generated remove*() methods
Registered -
Use INFORMATION_SCHEMA
Registered