Download the PHP package outofoffice/password-generator without Composer
On this page you can find all versions of the php package outofoffice/password-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download outofoffice/password-generator
More information about outofoffice/password-generator
Files in outofoffice/password-generator
Package password-generator
Short Description Random Password Generation Field for Laravel Nova
License MIT
Informations about the package password-generator
- Introduction
- Installation
- Localization
- Usage
- Password Length
- Prefix and Suffixes
- Hide Toolbar Elements
- Customize Password Generation
- Operation Based Filling
- Index and Detail View
- Other Methods
- Credits
- Localizations
- License
Introduction
Password Generator is a custom field for Laravel Nova (v4), allowing you to add a password generator when creating or updating resources.
Currently, you can show and hide the password. Include or exclude uppercase, lowercase, numbers and symbols from the generated passwords. Change the password length, minimum and maximum length or total length that respects the length of any prefix or suffix used on in the password. Easily copy it to your clipboard and regenerate passwords when you update the options or manually via the button.
Below you will find some more information about the usage of this field.
Installation
Install this package via composer:
Localization
Publish the package language files to your application's resources/lang/vendor
directory:
If you would like to help contribute to this package, localizing the package into a language you know would be a huge help!
Usage
You can use the PasswordGenerator
field just like the built-in Password
field, within your Nova Resources.
There are plenty of optional chain-methods you could add to change the functionality and visuals of the field itself.
Below will show the methods defaults, they're only used when added to the method chain. So some defaults will not
reflect the actual field defaults when no meta is passed to it. For example, using fillOnCreate()
will have a default of true when using the method, but this is not enabled by default within the actual default field
options itself. Unless otherwise stated, with phrases like Enabled/Disabled by default
or
Included/Excluded by default
These methods are meant to allow you to set your own defaults.
Password Length
You can determine the password length, be it generally, totally or the minimum and maximum lengths.
Prefix and Suffixes
Want to customize the password a bit? You can use the prefix()
and/or suffix()
methods to add a custom string to the
beginning or end of a password. If you use the totalLength()
method as well you will ensure the length of the password
respects your prefix and/or suffix.
Hide Toolbar Elements
Sometimes you may think the option toolbar is too long or is overkill for your app. You can easily decide to hide any or all of the toolbar elements, as well as keep some functionality with other methods listed below.
Customize Password Generation
Depending on your requirements, you might need to include or exclude specific characters from the final charlist used to generate passwords. Use the following methods to accomplish that.
Operation Based Filling
Sometimes you may want to autofill the password when the page is loaded, but usually you don't want to update the passwords when you're editing a resource. But we still have methods for both use-cases.
Index and Detail View
You can now show the value of your field on the index or detail pages, usually you wouldn't want to do this if you're using this field for passwords. But with other use-cases like tokens and such, this would be great. Since there's a detail field now, you can use this within the resource preview modal.
Other Methods
Just a list of other miscellaneous methods to control smaller features.
Credits
- Out of Office
- Miguel Batres
- Package Banner by BeyondCode
Localizations:
License
MIT - Please see the license file for more information.