Changelog

laravel-rust-ogm Alpha Laravel for Rust

All notable changes to this package. The format follows Keep a Changelog, 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 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.