Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Username Generator Laravel Package

taylornetwork/laravel-username-generator

View on GitHub
Deep Wiki
Context7
2.7.0

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.
2.6.2

[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
2.6.1
  • Added support for PHP 8.1
  • Set minimum PHP version to 7.4
2.6.0

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

2.5.1

Fixes issue where dictionary nouns and adjectives were not being respected

2.5.0
  • 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
2.4.0
  • 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.
2.3.2

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

2.3.1

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

As per #23

2.3.0

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

2.2.2

Fix bug detailed in #16

2.2.1
2.2.0
2.0.0

See Changes

1.1.4

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.

1.1.3
1.1.2
1.1.0
  • 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
1.0.2
1.0.0
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
directorytree/privacy-filter-classifier
directorytree/privacy-filter
datacore/hub-sdk
develia/commons
cuci/prototurk-sdk
cuci/prototurk-sdk-symfony
develia/geo-bundle
dreamzy/livewire-charts
touchestate-sdk/php-sdk
22h/doctrine-garbage-collection-bundle
agtp/agtp-php
agtp/mod-php
splash/sonata-admin
splash/metadata
splash/openapi
splash/scopes
splash/toolkit
testo/output-teamcity
testo/bridge-symfony
spatie/flare-daemon-runtime