valorin/random
Laravel helper for generating random strings, numbers, and values with a clean API. Create secure tokens, readable IDs, and randomized data for testing or seeding, with configurable length, character sets, and formats.
use*() methods.Full Changelog: https://github.com/valorin/random/compare/v1.0...v1.0.1
pick() now only supports array and Collection, and $count = 1 still returns array or Collection. This is to make the behaviour more consistent, and it didn't make much sense to pick multiple random characters from a string.single() replaces pickOne() and is used to pick a single item from an array, string, or Collection.Full Changelog: https://github.com/valorin/random/compare/v0.6...v1.0
Full Changelog: https://github.com/valorin/random/compare/v0.5...v0.6
require-dev.Full Changelog: https://github.com/valorin/random/compare/v0.4...v0.5
dashed return by @shatterproof in https://github.com/valorin/random/pull/15testUnexpectedSymbolsInput for unfiltered symbols by @shatterproof in https://github.com/valorin/random/pull/17dashed by @shatterproof in https://github.com/valorin/random/pull/16dashed $lower to $mixedCase by @shatterproof in https://github.com/valorin/random/pull/18Full Changelog: https://github.com/valorin/random/compare/v0.3...v0.4
length conflict with requireAll by @faissaloux in https://github.com/valorin/random/pull/9--strict option when validating composer.json and composer.lock by @localheinz in https://github.com/valorin/random/pull/14pick($count) by @faissaloux in https://github.com/valorin/random/pull/12passcode() alias for otp()Full Changelog: https://github.com/valorin/random/compare/v0.2...v0.3
Random::dashed() helper for dashed token strings.use* methods input by @faissaloux in https://github.com/valorin/random/pull/2Full Changelog: https://github.com/valorin/random/compare/v0.1...v0.2
Random finally has all the core features I wanted to include for the initial release, so I'm clicking the button and making it live!
This is definitely an early version, so method names and parameters may change as it starts being used and issues are identified.
Full Changelog: https://github.com/valorin/random/commits/v0.1
How can I help you explore Laravel packages today?