# Changelog (laravel-rust-format)

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

- Package: laravel-rust-format (Laravel for Rust, alpha), crates: `laravel-rust-format`, `laravel-rust-format-core`
- Maintenance: active; Latest release: 0.1.1 (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-format), [crates.io](https://crates.io/crates/laravel-rust-format/0.1.1), [docs.rs](https://docs.rs/laravel-rust-format/0.1.1), [Changelog](https://oss.bowerbird.si/format/docs/changelog/), [Contributing](https://github.com/bowerbird-si/laravel-rust-format/blob/16e2c1a95c60fb32c5ee2f37b7d58a9f72be23f7/CONTRIBUTING.md), [Security policy](https://github.com/bowerbird-si/laravel-rust-format/blob/16e2c1a95c60fb32c5ee2f37b7d58a9f72be23f7/SECURITY.md)
- Based on: [Laravel Str, Number and Pluralizer](https://github.com/laravel/framework): The behaviour of Illuminate\Support\Str, Number and Pluralizer, as typed Rust functions with English defaults.; [Carbon](https://github.com/briannesbitt/Carbon): The calendar, formats and relative-time translations, on Jiff with an explicit clock instant. The generated locale tables credit the authors of each language file.; [Doctrine Inflector](https://github.com/doctrine/inflector): English inflection rules, generated into Rust tables.; [Portable ASCII](https://github.com/voku/portable-ascii): Transliteration tables for Str::ascii and Str::slug, generated into Rust tables.; [League CommonMark](https://github.com/thephpleague/commonmark): Reference behaviour for Markdown in the PHP oracle; Comrak renders Markdown in Rust.; [Ramsey UUID](https://github.com/ramsey/uuid): Reference behaviour for identifiers in the PHP oracle; the core builds them in Rust.; [Symfony UID](https://github.com/symfony/uid): Reference behaviour for identifiers in the PHP oracle; the core builds them in Rust.
- PHP parity: core (465 covered, 4 diverged, 3 planned of 472 abilities; 133,206 fixtures; follows illuminate/support 13.39.0; verified 2026-12-04)
- Used in production across multiple projects.
- Community package, not affiliated with Laravel.
- HTML version: https://oss.bowerbird.si/format/docs/changelog/
- Source: https://github.com/bowerbird-si/laravel-rust-format/blob/16e2c1a95c60fb32c5ee2f37b7d58a9f72be23f7/CHANGELOG.md

All notable changes to this project will be documented here.

The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [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.

[Unreleased]: https://github.com/bowerbird-si/laravel-rust-format/compare/v0.1.1...HEAD
[0.1.1]: https://github.com/bowerbird-si/laravel-rust-format/compare/v0.1.0...v0.1.1
[0.1.0]: https://github.com/bowerbird-si/laravel-rust-format/releases/tag/v0.1.0
