RandString Install composer require sn01615/rand-string Usage use PhpUtils\RandString; echo RandString::getRandString(32);