Download the PHP package jimwins/titi without Composer
On this page you can find all versions of the php package jimwins/titi. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package titi
Short Description A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP, plus a lightweight ActiveRecord implementation
License BSD-2-Clause BSD-3-Clause BSD-4-Clause
Homepage https://trainedmonkey.com/projects/titi/
Informations about the package titi
Titi
Titi is a lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP, plus a lightweight ActiveRecord implementation.
Titi was forked from Idiorm and Paris (combined into a single repo).
Tested on PHP 8.1.16 and MySQL 8.0.32 - may work on earlier versions with PDO and the correct database drivers.
Released under a BSD license.
Features
- Makes simple queries and simple CRUD operations completely painless.
- Gets out of the way when more complex SQL is required.
- Built on top of PDO.
- Uses prepared statements throughout to protect against SQL injection attacks.
- Requires no model classes, no XML configuration and no code generation: works out of the box, given only a connection string.
- Consists of one main class called
ORM
. Additional classes are prefixed withTiti
. Minimal global namespace pollution. - Database agnostic. Currently supports SQLite, MySQL, Firebird and PostgreSQL. May support others, please give it a try!
- Supports collections of models with method chaining to filter or apply actions to multiple results at once.
- Multiple connections supported
- PSR-1 compliant methods (any method can be called in camelCase instead of underscores eg.
find_many()
becomesfindMany()
) - you'll need PHP 5.3+
Documentation
The documentation is hosted on Read the Docs: titi.rtfd.io.
Building the Docs
You will need to install Sphinx and then in the docs folder run:
make html
The documentation will now be in docs/_build/html/index.html
Let's See Some Code
Tests
Tests are written with PHPUnit and be run through composer
composer test
To see the test progress and results:
composer -v test