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'spreg_split(php::preg_split,Pattern::split) on the bounded PCRE2 policy, andsscanf-stylestr::scan. - Localized number parsing (
Number::parse,parseInt,parseFloat), spellout and ordinals onnumber::Locale, from ICU's own rule-based number format rules. 43 locales are included by default and thenumber-locale-allfeature adds the rest. - PHP 8.4 rounding modes (
php::round_withwithRoundingMode), Laravel'sArr::joinandCollection::join(arrmodule),printf,vprintfandfprintfwriting to a sink, andphp::json_encode_bytes. - Carbon intervals and periods:
carbon::Interval(CarbonIntervalspecs, cascade, totals,formatandforHumans),carbon::diffreturning an interval,carbon::Periodwith bounded iteration,shift_timezoneand locale-aware week helpers. php::strtotime,php::date_createandcarbon::modify, sharingcarbon::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_strtotimeandcarbon_modify, and localizednumber_spellandnumber_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_encodewith 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 throughnumber::Locale. - Dates (Carbon on Jiff 1): PHP
date()letters, theto*Stringconversions,diffForHumanswith all its options in 28 default locales (824 withcarbon-locale-all), calendar arithmetic and comparisons, localized formats, and parsing (parse,createFromFormat,createFromTimestamp). Every clock is passed explicitly. - Blade output:
Js::from/@jsand@json.
- PHP:
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.