Skip to content
Random Utilities

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Calendar Versioning.

2026.1.0

Bug Fixes

2026.0.1

New Features

Unreleased

Added

  • Constraint system with pool filters and output constraints
  • Built-in constraints: MustContainDigit, MustContainLetter, MustContainUppercase, NoRepeatingCharacters, NoSequentialCharacters, RegexConstraint, ExcludeCharacters, ExcludeSimilarCharacters
  • Early conflict detection via canBeSatisfiedBy on output constraints
  • New drivers: BinaryDriver, HexDriver, LowercaseAlphaDriver, UppercaseAlphaDriver, CustomDriver
  • Benchmark script for performance regression testing
  • Security audit workflow and Dependabot configuration
  • CHANGELOG.md

Changed

  • Require PHP ^8.5
  • Optimise string generation with batched random_bytes and rejection sampling
  • Standardise CI workflows (tests, codecov, security audit)
  • Standardise dev tooling (Pint PSR-12, PHPStan level max, Rector prepared sets)
  • Achieve 100% test coverage
  • unique() uses a hash set and an attempt limit that scales with the remaining space; generate() values are now recorded so unique() never repeats them
  • Built-in drivers build their pools directly instead of shuffling 5000 times (same characters); removed AbstractDriver::shuffleArray(), shuffleString() and $iterations
  • permutations() counts unique pool characters

Removed