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::parseaccepts+++XXX/XXXX/XXXXX+++,***XXX/XXXX/XXXXX***,XXX/XXXX/XXXXXand 12 plain digits, after trimming ASCII whitespace.Ogm::from_structuredandOgm::from_digitsare the strict equivalents of PHP'sValidator::isValidandValidator::digitsAreValid.Ogm::generateandOgm::generate_with_prefix, the equivalents of PHP'sGenerator::generate, andOgm::from_basefor a reference with nothing left to chance.- Formatting with
Display,to_plus_format,to_asterisk_format,to_slash_formatanddigits. - Typed errors in
OgmError.PrefixTooLongreplaces PHP'sTooMuchDigitsexception, andInvalidPrefixrejects the prefixes PHP coerces. OgmRule, a validation rule for Laravel for Rust withAny,StructuredandPlainmodes.- Serde support behind the
serdefeature: anOgmserializes as+++XXX/XXXX/XXXXX+++and deserializes throughOgm::parse. The core also builds without Laravel for Rust withdefault-features = false.
Differences from PHP
***XXX/XXXX/XXXXX***is accepted, which PHP'sisValidrejects.- The strict checks reject a trailing newline and non-digit characters that PHP's casts let through.
- No command-line tool: PHP's
bin/ogmhas no equivalent.