laravel-username-generator

Automatically generate usernames for Laravel User Model

MIT License

Downloads
151K
Stars
51
Committers
6

Bot releases are hidden (Show)

laravel-username-generator - v2.8 Latest Release

Published by samueljtaylor about 2 years ago

laravel-username-generator - v2.7

Published by samueljtaylor over 2 years ago

Changed

  • FindSimilarUsernames no longer needs a usernameColumn property in the parent model if the column is different than 'username' and the config file is not directly changed.

Added

  • Missing types for some properties.
  • Driver and HandlesConfig contracts.
  • getDriver() method in Generator class.
laravel-username-generator - v2.6.2 - Security Fix

Published by samueljtaylor over 2 years ago

[Fixed]

  • Possible SQL injection vulnerability, see #54
  • Bug where findSimilarUsernames would return an incorrect number of similarities when using the REGEXP function with a separator.

[Changed]

  • prefer_regexp config option by default is now false
laravel-username-generator - v2.6.1

Published by samueljtaylor almost 3 years ago

  • Added support for PHP 8.1
  • Set minimum PHP version to 7.4
laravel-username-generator - v2.6

Published by samueljtaylor about 3 years ago

This release addresses issues relating to other character sets. See the readme for a full change log.

laravel-username-generator - v2.5.1

Published by samueljtaylor about 3 years ago

Fixes issue where dictionary nouns and adjectives were not being respected

laravel-username-generator - v2.5

Published by samueljtaylor almost 4 years ago

  • Added maximum length check.
  • Added ability for pre-filled usernames to go through generate process to allow for consistent username styles.
  • Added checking for similar usernames using REGEXP or LIKE (LIKE is a fallback if REGEXP fails).
  • Added a check if a username is unique as is before checking for similar ones.
  • Added checkMinLength and checkMaxLength hooks on base driver.
  • Updated composer.json to support PHP 7.2 and above
  • Updated readme for better Laravel 8+ quickstart
laravel-username-generator - v2.4

Published by samueljtaylor almost 4 years ago

  • This is a minor change but if you're using older versions of Laravel you may need to update your config file.
  • Changed default User model from App\User to App\Models\User to mirror new Laravel versions (8.0+).
  • Moved the adjective and noun word lists from the config file to a separate file, making the published config smaller and allowing you to create your own word lists if you wish.
laravel-username-generator - Bug Fix

Published by samueljtaylor almost 4 years ago

Fixed bug in #25 where a model using the GeneratesUsernames without the specified column would throw an error rather than return a random username

laravel-username-generator - Bug Fix

Published by samueljtaylor almost 5 years ago

Bug fix that was preventing username generation on unique usernames, using the FindSimilarUsernames trait when the username had found nothing similar.

As per #23

laravel-username-generator - Added word dictionary support

Published by samueljtaylor almost 5 years ago

Added support for empty names to be converted to random usernames using a wordlist

laravel-username-generator - Fix custom column bug

Published by samueljtaylor over 5 years ago

Fix bug detailed in #16

laravel-username-generator -

Published by samueljtaylor over 5 years ago

laravel-username-generator - Added minimum length support

Published by samueljtaylor over 5 years ago

laravel-username-generator - Add email and driver support

Published by samueljtaylor over 5 years ago

laravel-username-generator -

Published by samueljtaylor over 5 years ago

See Changes

laravel-username-generator - Fixes extra separators

Published by samueljtaylor over 5 years ago

This fixes an issue where separators were added when trimming extra characters.

Example (using '-' as separator):

$generator->generate('123 this is a test!');

Would return:

'----this-is-a-test-'

If no separator was used this behaviour would not be seen.

laravel-username-generator - Fix assignment issue

Published by samueljtaylor over 5 years ago

laravel-username-generator -

Published by samueljtaylor almost 6 years ago

laravel-username-generator - v1.1.0

Published by samueljtaylor over 6 years ago

  • Changed makeUsername method to generate (makeUsername STILL has support, use generate preferably)
  • Added generateFor method which allows you to pass a model for the generator to grab the name directly
  • Added GeneratesUsernames trait which will automatically add a username on model saving if it's null
  • Changed the constructor to allow an array parameter to set config