Download the PHP package gabrielesbaiz/nova-password-toolkit without Composer

On this page you can find all versions of the php package gabrielesbaiz/nova-password-toolkit. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-password-toolkit

Nova Password Toolkit

Latest Version on Packagist PHP Version Total Downloads

A Laravel Nova front end for gabrielesbaiz/password-toolkit.

Two things, really. A settings dashboard where you pick which dictionaries the generator draws from and tune how passwords are assembled — written straight back to your config file as readable PHP. And a field widget that drops a suggested password, a theme browser and a strength meter under any password field on the panel.

Contents

Requirements

Installation

Publish the config if you want to change anything in it:

Then say who is allowed to manage the toolkit — nothing is reachable until you do, see Authorization:

The dashboard registers itself. Registering the tool as well is optional, and only puts an entry in the main menu:

The field widget

That renders a strength meter, a generated password, a refresh button, a theme gallery and a copy button. Each part can be turned off, and the meter can be pointed at a specific input — worth doing on a form with more than one password field, since otherwise it finds the nearest one by walking up the DOM:

[!IMPORTANT] Nova's help() assigns rather than appends, so order matters. Put help() first and the widget keeps your prose; put it last and it replaces the widget entirely.

There is also a global passwordSuggestionHelp() function that renders the same markup, for call sites that predate the macro.

The settings dashboard

Available at /dashboards/password-toolkit-name-types, or through the tool's menu entry. It shows every dictionary the generator ships, grouped and searchable, plus the generation options — separator, digits, position, leetspeak. Saving writes your config file back as formatted PHP, so a change shows up as a sensible git diff rather than a serialised blob.

Authorization

Two checks, and they deliberately fail in opposite directions.

Managing rewrites a PHP file inside your config/ directory, so it is closed until you open it. The default ability, manage-password-toolkit, is one no application defines — and an undefined ability denies.

Suggesting is the help text under every password field. It is open to any authenticated user by default, because closing it would break user creation on a fresh install and a generated password is not a secret until somebody saves it.

Either can be a Gate ability:

…or a closure, for rules that do not fit one:

Multiple config files

An ordinary panel has one config file and needs none of this. A codebase serving several brands or tenants has one per brand and picks between them per request — which the package cannot work out on its own, so it asks:

The first is the file for this request. The second is every file the sync command should maintain.

[!NOTE] These are closures registered from a provider, not config values, because config:cache cannot serialise a closure — the first cached deploy would fatal.

For full control, bind the contract instead; it beats both:

Keeping config in step

A published config file is a snapshot. When the generator adds a key in a later release your copy simply does not have it:

This walks every file the resolver knows about and adds what is missing. It never overwrites a value you have set — that is why it is additive rather than a re-publish. Worth wiring into post-update-cmd:

Translations

English and Italian ship with the package. Override any key without restating the rest:

Dictionary names are humanised from their keys and passed through __(), so translating one is a matter of adding that exact string to a lang file.

Testing

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of nova-password-toolkit with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
gabrielesbaiz/password-toolkit Version ^2.0
illuminate/support Version ^11.0|^12.0
spatie/laravel-package-tools Version ^1.16
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gabrielesbaiz/nova-password-toolkit contains the following files

Loading the files please wait ...