PHPackages                             universiterennes2/standfordlikepasswordpolicy - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Security](/categories/security)
4. /
5. universiterennes2/standfordlikepasswordpolicy

ActiveLibrary[Security](/categories/security)

universiterennes2/standfordlikepasswordpolicy
=============================================

Standford's like password policy checker, homepage support

v1.0.1(3y ago)03LGPL-3.0-or-laterPHPPHP &gt;= 7.0CI passing

Since Jun 5Pushed 1y ago2 watchersCompare

[ Source](https://github.com/DSI-Universite-Rennes2/php-standford-like-password-policy)[ Packagist](https://packagist.org/packages/universiterennes2/standfordlikepasswordpolicy)[ RSS](/packages/universiterennes2-standfordlikepasswordpolicy/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (3)Used By (0)

Standford's like password policy : PHP implementation
=====================================================

[](#standfords-like-password-policy--php-implementation)

[![Latest Stable Version](https://camo.githubusercontent.com/80eb36002f9ec348da8f5599098a22f90389f20165f50e7dbdd5a8a2d63ea1e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f756e697665727369746572656e6e6573322f7374616e64666f72646c696b6570617373776f7264706f6c696379)](https://packagist.org/packages/universiterennes2/standfordlikepasswordpolicy)[![REUSE compliant](https://camo.githubusercontent.com/304076780647a8f83c1275247ada8e2bf662c55927049b7067bc87523bbc8582/68747470733a2f2f72657573652e736f6674776172652f62616467652f72657573652d636f6d706c69616e742e737667)](https://reuse.software/)[![Minimum PHP Version](https://camo.githubusercontent.com/ced540d240968ce91ebd12b7b0dcc27583296a91f5fc713303a9670ba60e94df/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f756e697665727369746572656e6e6573322f7374616e64666f72646c696b6570617373776f7264706f6c6963793f636f6c6f723d677265656e267374796c653d666c61742d737175617265)](https://php.net/)[![Unit tests](https://github.com/DSI-Universite-Rennes2/php-standford-like-password-policy/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/DSI-Universite-Rennes2/php-standford-like-password-policy/actions/workflows/unit-tests.yml)[![Coverage Status](https://camo.githubusercontent.com/00c9fc7810bb8f44098bfdbb958dd923198fd59c21f816aa8992928f8fd9e489/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4453492d556e69766572736974652d52656e6e6573322f7068702d7374616e64666f72642d6c696b652d70617373776f72642d706f6c6963792f62616467652e7376673f6272616e63683d6d61696e)](https://coveralls.io/github/DSI-Universite-Rennes2/php-standford-like-password-policy?branch=main)[![License](https://camo.githubusercontent.com/a1a04bf591d6053edc056fd513347ddeec29262df7a4870de58501b3e1c9b0ef/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f756e697665727369746572656e6e6573322f7374616e64666f72646c696b6570617373776f7264706f6c6963793f636f6c6f723d67726565)](LICENSE)

This library implements a checker for Standford's password policy in PHP with only one minor change :

- The minimal password's length is 9 (instead of 8 in the original policy)

The [Standford password policy](https://uit.stanford.edu/service/accounts/passwords)is a length-based password policy : increase password length = decrease constraints.

- 9-11 character passwords require the use of upper and lower case, numerical and special characters.
- 12-15 character passwords require the use of upper and lower case and numerical characters.
- 16-19 character passwords require upper and lower case characters
- 20+ characters require any characters.

Table of Contents
-----------------

[](#table-of-contents)

- [Standford's like password policy : PHP implementation](#standfords-like-password-policy--php-implementation)
    - [Table of Contents](#table-of-contents)
    - [Install](#install)
    - [Usage](#usage)
    - [Contribute](#contribute)
    - [License](#license)

Install
-------

[](#install)

```
composer require universiterennes2/standfordlikepasswordpolicy

```

Usage
-----

[](#usage)

```
