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.
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 sounique()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
- Legacy php.yml workflow (replaced by tests.yml) [2026.0.1]: https://github.com/myerscode/utilities-random/compare/2026.0.0...2026.0.1 [2026.1.0]: https://github.com/myerscode/utilities-random/compare/2026.0.1...2026.1.0