Changelog

laravel-rust-format Alpha Laravel for Rust

Used in production across multiple projects.

All notable changes to this project will be documented here.

The format follows Keep a Changelog, and the project follows Semantic Versioning.

Unreleased

0.1.1 - 2026-12-04

Added

  • Laravel's fluent Stringable (str::of), PHP's preg_split (php::preg_split, Pattern::split) on the bounded PCRE2 policy, and sscanf-style str::scan.
  • Localized number parsing (Number::parse, parseInt, parseFloat), spellout and ordinals on number::Locale, from ICU's own rule-based number format rules. 43 locales are included by default and the number-locale-all feature adds the rest.
  • PHP 8.4 rounding modes (php::round_with with RoundingMode), Laravel's Arr::join and Collection::join (arr module), printf, vprintf and fprintf writing to a sink, and php::json_encode_bytes.
  • Carbon intervals and periods: carbon::Interval (CarbonInterval specs, cascade, totals, format and forHumans), carbon::diff returning an interval, carbon::Period with bounded iteration, shift_timezone and locale-aware week helpers.
  • php::strtotime, php::date_create and carbon::modify, sharing carbon::parse's grammar, now extended to PHP's documented date formats, with an explicit clock.
  • MiniJinja filters: arr_join, php_round(mode=), str_split, str_scan, str_to_boolean, interval_for_humans, php_strtotime and carbon_modify, and localized number_spell and number_ordinal.

0.1.0 - 2026-12-04

First release. Requires laravel-rust 0.2 for the adapter; the core has no framework dependency. Minimum Rust 1.99.

Added

  • laravel-rust-format-core, framework-independent Rust functions that reproduce PHP, Laravel and Carbon formatting byte for byte for the supported inputs:
    • PHP: number_format, round, echo-style float printing, value views and ordered arrays, truthiness, loose equality, scalar casts, sprintf, json_encode with flags and depth, string and mbstring functions, HTML entities and tag stripping, URL and Base64 codecs, and query building.
    • Strings (Str): limits, Unicode case, Portable ASCII transliteration, slugs, English inflection, search, transforms, append/prepend, PCRE patterns with resource limits, GitHub-flavoured Markdown, and random strings, passwords, UUIDs and ULIDs.
    • Numbers (Number): formatting, file sizes, percentages, currencies, abbreviations, ordinals, spellout and range helpers in English, and decimal, percentage, currency, file-size and abbreviation output for ICU locales through number::Locale.
    • Dates (Carbon on Jiff 1): PHP date() letters, the to*String conversions, diffForHumans with all its options in 28 default locales (824 with carbon-locale-all), calendar arithmetic and comparisons, localized formats, and parsing (parse, createFromFormat, createFromTimestamp). Every clock is passed explicitly.
    • Blade output: Js::from / @js and @json.
  • laravel-rust-format, the Laravel for Rust adapter: a service provider, template configuration and MiniJinja filters for the helpers above, with normal autoescaping and output limits.
  • Conformance fixtures generated by PHP itself: PHP 8.4.27 with ICU 72.1 (normative, regenerated in CI from the pinned production image) and PHP 8.4 and 8.5 with ICU 76.1, about 44,000 cases per runtime. ICU 72.1 number data is the default.
  • A guide with API examples, migration tables from PHP and Blade, and the runtime parity notes.