# Changelog (laravel-rust-ogm)

> What changed in each release of laravel-rust-ogm: additions, changes and fixes.

- Package: laravel-rust-ogm (Laravel for Rust, alpha), crates: `laravel-rust-ogm`
- Maintenance: active; Latest release: 0.1.0 (2026-12-04); Framework: laravel-rust 0.2.x; MSRV: Rust 1.99 or later; Licence: MIT
- Links: [Repository](https://github.com/bowerbird-si/laravel-rust-ogm), [crates.io](https://crates.io/crates/laravel-rust-ogm/0.1.0), [docs.rs](https://docs.rs/laravel-rust-ogm/0.1.0), [Changelog](https://oss.bowerbird.si/ogm/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-rust-ogm/blob/bf28d991039b0ea13ff1e66e4e57b32f8f82a805/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-rust-ogm/blob/bf28d991039b0ea13ff1e66e4e57b32f8f82a805/SECURITY.md)
- Based on: [ruudvdd/ogm](https://github.com/ruudvdd/ogm): The Belgian structured payment reference package this ports: the generator, the validator and the mod-97 check, following version 0.2.0.
- PHP parity: full (4 covered, 5 diverged, 0 planned of 9 abilities; 55 fixtures; follows ruudvdd/ogm 0.2.0; verified 2026-12-04)
- Community package, not affiliated with Laravel.
- HTML version: https://oss.bowerbird.si/ogm/docs/changelog/
- Source: https://github.com/bowerbird-si/laravel-rust-ogm/blob/bf28d991039b0ea13ff1e66e4e57b32f8f82a805/CHANGELOG.md

All notable changes to this package. The format follows
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and versions follow the package standards'
versioning rules: while the version is `0.x`, a minor release may break, a patch never does.

## [Unreleased]

## [0.1.0] - 2026-12-04

First release: a port of [ruudvdd/ogm](https://github.com/ruudvdd/ogm) 0.2.0 for Laravel for Rust, at parity
level `full` with 55 fixtures generated by PHP itself.

### Added

- `Ogm`, a validated Belgian structured payment reference (OGM/VCS). `Ogm::parse` accepts
  `+++XXX/XXXX/XXXXX+++`, `***XXX/XXXX/XXXXX***`, `XXX/XXXX/XXXXX` and 12 plain digits, after trimming
  ASCII whitespace. `Ogm::from_structured` and `Ogm::from_digits` are the strict equivalents of PHP's
  `Validator::isValid` and `Validator::digitsAreValid`.
- `Ogm::generate` and `Ogm::generate_with_prefix`, the equivalents of PHP's `Generator::generate`, and
  `Ogm::from_base` for a reference with nothing left to chance.
- Formatting with `Display`, `to_plus_format`, `to_asterisk_format`, `to_slash_format` and `digits`.
- Typed errors in `OgmError`. `PrefixTooLong` replaces PHP's `TooMuchDigits` exception, and `InvalidPrefix`
  rejects the prefixes PHP coerces.
- `OgmRule`, a validation rule for Laravel for Rust with `Any`, `Structured` and `Plain` modes.
- Serde support behind the `serde` feature: an `Ogm` serializes as `+++XXX/XXXX/XXXXX+++` and deserializes
  through `Ogm::parse`. The core also builds without Laravel for Rust with `default-features = false`.

### Differences from PHP

- `***XXX/XXXX/XXXXX***` is accepted, which PHP's `isValid` rejects.
- The strict checks reject a trailing newline and non-digit characters that PHP's casts let through.
- No command-line tool: PHP's `bin/ogm` has no equivalent.
