Download the PHP package vusys/laravel-bitemporal without Composer
On this page you can find all versions of the php package vusys/laravel-bitemporal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download vusys/laravel-bitemporal
More information about vusys/laravel-bitemporal
Files in vusys/laravel-bitemporal
Package laravel-bitemporal
Short Description Effective-dated and bitemporal models for Laravel 11+.
License MIT
Homepage https://vusys.github.io/laravel-bitemporal/
Informations about the package laravel-bitemporal
Laravel Bitemporal Models
Safe effective-dated and bitemporal relations for Laravel.
vusys/laravel-bitemporal provides first-class support for effective-dated and bitemporal Eloquent data — modelling facts that change over time, where the application needs to answer:
- What was true on this business date?
- What did the system believe was true on this business date at the time?
- When did this value become effective, and when was a correction recorded?
The value is not a handful of query scopes. It is a custom temporal relation with safe write operations, range splitting, correction handling, point-in-time eager loading, and overlap prevention — so you can correct the past without destroying the previous state of knowledge or creating overlapping historical facts.
Installation
PHP 8.4+, Laravel 11 / 12 / 13, and PostgreSQL, MySQL/MariaDB, or SQLite. The service provider is auto-discovered. See Installation for the optional config publish.
Quick example
A product has many price versions. The entity model exposes the timeline; the temporal model carries the period columns.
Period-column casts are applied automatically — you don't declare them. The migration uses the package's Blueprint macros:
Read at a point in time:
Write safely:
Documentation
📚 Full documentation: vusys.github.io/laravel-bitemporal
Also readable directly in docs/:
- Defining models
- Dimensions
- Testing
- Exception catalogue
Requirements
- PHP 8.4+
- Laravel 11 / 12 / 13
- PostgreSQL, MySQL/MariaDB, or SQLite
Status
The package is built from a detailed internal specification and its feature set is complete and green across SQLite, MySQL 8.4, MariaDB, and PostgreSQL 16. The read side, the core write side (change / correct / retract / end / supersede / hard-delete), dimensions, the as-of lens, polymorphic entities, backfill, optimistic concurrency, lock strategies, and the migration macros are implemented — along with temporal pivots (BitemporalBelongsToMany), idempotency keys, the first-party audit-log subscriber, diff and timeline helpers, the testing helpers and factories, boot guards and advisory lints, and the full generator/command set (make:bitemporal-*, bitemporal:audit-*, bitemporal:diff-timelines, bitemporal:warm-guards, bitemporal:prune-idempotency-keys).
Enhancements and further hardening are tracked in the issue tracker under the roadmap label.
Development
License
MIT. See LICENSE.
All versions of laravel-bitemporal with dependencies
illuminate/database Version ^11.0|^12.0|^13.0
illuminate/events Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
nesbot/carbon Version ^3.0