Download the PHP package yebor974/filament-renew-password without Composer

On this page you can find all versions of the php package yebor974/filament-renew-password. 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 filament-renew-password

Filament Renew Password Plugin

The Filament Renew Password Plugin enhances Filament by prompting users to renew their passwords based on specified criteria.

Two default renewal processes are implemented:

You are free to add your own renewal criteria.

Screenshot

Installation

  1. Install the package using the composer command:

  2. Publish and run the migration, which adds new columns last_renew_password_at and force_renew_password to the users table.

Alternatively, if you don't want to publish the migrations or already have columns in your database for such case, you can skip this step and customize the column name by using any of the configuration methods described in the Configuration section below.

  1. Optionally, you can publish translations files with:

  2. Register the plugin in your panel provider:

Configuration

Filament Renew Password Plugin is designed to work out of the box with minimal configuration. However, you can customize the plugin by publishing the configuration file, changing the environment variables or using the plugin object to override the default settings.

Renewal Processes

Two configurations are available and can be used simultaneously.

By default, recurring renewal process is disabled.

To activate recurring renewal process, you have to call passwordExpiresIn and define the number of days of recurring:

This activation automatically manages a last renewal timestamp column named last_renew_password_at. You can customize it with the timestampColumn function:

The force renewal process can be useful for example when an administrator creates a user. You can send a temporary password to the new user and force them to renew their password at the first login.

By default, force renewal process is disabled.

To activate it, you have to call forceRenewPassword function:

This activation automatically manages a force renew boolean column named force_renew_password. If you want to customize it, you can define with second param:

If you dont want the recurring renewal process but only want the force renewal process with also timestamp column you can add it with:

You can of course use both process with this configuration:

And with columns customization:

Custom Renew Page

By default, RenewPassword simple page is used to ask user to renew it. You can custom it with:

Route URI

'password/renew' is the default route URI when being asked to change passwords. For translation purposes, you may want to customize this. You can do this with the following configuration:

Usage

Implement the RenewPasswordContract on your Authentication Model (User) and define the criteria for prompting password renewal in the needRenewPassword function.

You can use the RenewPassword trait on your Authentication Model (User).

This trait manages recurring renew if activated and/or force renew if activated:

You can make your own criteria by implement needRenewPassword function on your Authentication Model (User). In this case, you will certainly need to customize the RenewPassword simple page described above.

Migrate from V1 to V2

The V2 no longer automatically enables the password renewal process. You must define the processes to use according to the documentation above. Additionally, there are no longer any associated configuration files or .env variables.

To migrate to V2 and enable the recurring renewal process, you need to call the passwordExpiresIn function during your plugin initialization with the renewal period in days:

If you want to add the force renew process, you need to add the force boolean column to your authentication model (User) and declare it as shown in the Configuration section above.


All versions of filament-renew-password with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
filament/filament Version ^3.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 yebor974/filament-renew-password contains the following files

Loading the files please wait ....