valorin/random
Random is a simple helper package designed to make it easy to generate a range of different cryptographically secure random values.
v1.0.1
325K downloads/mo
#4059 most downloaded on Packagist
valorin/random
What this package is like to depend on
Last release 1 years ago
18 Mar 2025
Ships unpredictably
gaps range from 1 weeks to 12 months
Most releases are documented
notes for 7 of 8 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
8 releases · first in 2023
0 releases in the last 12 months
see the full history below
Release timeline
8 releases · Dec 2023 to Mar 2025Releases
latest 8-
v1.0.118 Mar 2025Release notes
Open source →What's Changed
- Allow string as input for useSymbols by @princejohnsantillan in #23
- Allow string input for all
use*()methods.
New Contributors
- @princejohnsantillan made their first contribution in #23
Full Changelog: v1.0...v1.0.1
-
v1.012 Mar 2025Release notes
Open source →What's Changed
- Finally tagged v1.0! 🎉
pick()now only supportsarrayandCollection, and$count = 1still returnsarrayorCollection. This is to make the behaviour more consistent, and it didn't make much sense to pick multiple random characters from a string.single()replacespickOne()and is used to pick a single item from an array, string, or Collection.- Added some parameter hints to make the code more readable.
- Added PHP 8.4 into testing versions list.
Full Changelog: v0.6...v1.0
-
v0.607 Mar 2025Release notes
Open source → -
v0.512 Mar 2024Release notes
Open source →- Bumped Laravel support to v11 - note, it's only for
require-dev.
Full Changelog: v0.4...v0.5
- Bumped Laravel support to v11 - note, it's only for
-
v0.414 Jan 2024Release notes
Open source →What's Changed
- Enhancement: Simplify
dashedreturn by @shatterproof in #15 - Fix: Adjust
testUnexpectedSymbolsInputfor unfiltered symbols by @shatterproof in #17 - Enhancement: Include $lower attribute for
dashedby @shatterproof in #16 - Rename
dashed$lower to $mixedCase by @shatterproof in #18
New Contributors
- @shatterproof made their first contribution in #15
Full Changelog: v0.3...v0.4
- Enhancement: Simplify
-
v0.303 Jan 2024Release notes
Open source →What's Changed
- Fix string
lengthconflict withrequireAllby @faissaloux in #9 - Enhancement: Extract trait by @localheinz in #3
- Fix typo in README by @szepeviktor in #4
- Normalize composer.json by @szepeviktor in #5
- Fix logic in Random::generator() by @szepeviktor in #8
- Enhancement: Use
--strictoption when validatingcomposer.jsonandcomposer.lockby @localheinz in #14 - Fix
pick($count)by @faissaloux in #12 - Added
passcode()alias forotp()
New Contributors
- @localheinz made their first contribution in #3
- @szepeviktor made their first contribution in #4
Full Changelog: v0.2...v0.3
- Fix string
-
v0.231 Dec 2023Release notes
Open source →What's Changed
- Added
Random::dashed()helper for dashed token strings. - Fix unexpected
use*methods input by @faissaloux in #2
New Contributors
- @faissaloux made their first contribution in #2
Full Changelog: v0.1...v0.2
- Added
-
v0.130 Dec 2023Nothing published for this version