Download the PHP package terminal42/contao-password-validation without Composer

On this page you can find all versions of the php package terminal42/contao-password-validation. 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 contao-password-validation

terminal42/contao-password-validation

A Contao bundle that validates user passwords against your password policy.

Features

Installation

Choose the installation method that matches your workflow!

Installation via Contao Manager

Search for terminal42/contao-password-validation in the Contao Manager and add it to your installation. Finally, update the packages.

Manual installation

Add a composer dependency for this bundle. Therefore, change in the project root and run the following:

Depending on your environment, the command can differ, i.e. starting with php composer.phar … if you do not have composer installed globally.

Then, update the database via the Contao install tool.

Configuration

Password validation

Add the following configuration parameters to your app/config/config.yml:
(Skip options that you do not need)

Parameter Purpose
password_history: Keep track of the latest n passwords, and force the users not to choose one of their recent passwords.
change_days: Ask the user to change their password after certain days.
haveibeenpwned: Check the user password against known data breaches reported to ';--have i been pwned?. The configuration allows you to specify an integer to define the minimum number of data breaches the password needs to occur in to fail password validation.

Password-change

  1. Create a "password-change" page and place a password-change module on it. Select this page as password-change page in the page root.
  2. You can now force members to change their passwords by ticking the corresponding checkbox in the member edit-mask.

Add your own password validator

You can add your own validation rule, e.g. a dictionary check.

Create a class that implements PasswordValidatorInterface. Then, create and tag a corresponding service.

License

This bundle is released under the MIT license


All versions of contao-password-validation with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
contao/core-bundle Version ^4.13 || ^5.0
doctrine/dbal Version ^3.3
paragonie/hidden-string Version ^1.0
symfony/config Version ^5.0 || ^6.0 || ^7.0
symfony/dependency-injection Version ^5.0 || ^6.0 || ^7.0
symfony/http-client-contracts Version ^3
symfony/http-foundation Version ^5.0 || ^6.0 || ^7.0
symfony/http-kernel Version ^5.0 || ^6.0 || ^7.0
symfony/password-hasher Version ^5.0 || ^6.0 || ^7.0
symfony/security-core Version ^5.0 || ^6.0 || ^7.0
symfony/string Version ^5.0 || ^6.0 || ^7.0
symfony/translation-contracts Version ^3
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 terminal42/contao-password-validation contains the following files

Loading the files please wait ....