jpfuentes2/php-activerecord
ActiveRecord implementation for PHP observed · 2026-08-28
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 6312
- days_rel: n/a
- days_push: 812
- n_releases_24m: 0
Adoption not part of the score
1305 stars · 431 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PHP ActiveRecord is an open-source ORM library for PHP implementing the ActiveRecord pattern, inspired by Ruby on Rails' ActiveRecord. It maps database tables to PHP classes and eliminates hand-written SQL for common CRUD operations, with support for MySQL, SQLite, PostgreSQL, and Oracle via PDO.
Use cases
- map database tables to PHP model classes without writing SQL
- perform CRUD operations on MySQL or PostgreSQL from PHP
- define model relationships and associations like has_many and belongs_to
- validate model attributes before saving to the database
- run database transactions in a PHP application
- serialize models to JSON or XML
- avoid N+1 queries with eager loading of associations
When to choose
- you want a Rails-style ActiveRecord ORM in a PHP 5.3+ project
- you prefer convention over configuration with no code generators or mapping files
- you need a lightweight ORM supporting multiple database adapters via PDO
When to avoid
- you need an actively developed ORM with modern PHP 8+ features
- you require advanced features like migrations, query builders, or complex joins
- you are starting a new project where Doctrine or Eloquent would be better supported
Facets
library · maturity maintenance
orm database serialization databases web-development backend developer-tools php windows cross-platform active-record-pattern pdo mysql sqlite postgresql oracle rails-inspired crud validations callbacks eager-loading linux macos
4 sources
- readme: https://github.com/jpfuentes2/php-activerecord · fetched 2026-08-28 · eed544256ae3
- homepage: http://www.phpactiverecord.org/ · fetched 2026-08-29 · 53427e8a1a5e
- site_page: https://www.phpactiverecord.org/docs · fetched 2026-08-29 · 38f0cb981f3f
- site_page: https://www.phpactiverecord.org/welcome/about · fetched 2026-08-29 · ec73463230c7
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| jpfuentes2/php-activerecord | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="jpfuentes2/php-activerecord")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem