lmihaylov/pass-generator

A simple and elegant PHP password generator for either browser and console environments.

v1.1.5 2016-11-29 10:18 UTC

This package is auto-updated.

Last update: 2024-03-29 02:53:07 UTC


README

Build Status Scrutinizer Code Quality

Useful tool for generating password which can be running in either browser and console environments. It can be customize in each aspects: symbols types, length, allowed minimum and maximum sizes and patterns for characters group.

Requirements

  • installed PHP version >= 7.0
  • Composer dependency tool
  • Node.js plus NPM package manager
  • Bower CLI
  • Grunt CLI

Demo

All demos (for console and browsers) are located in "demo" directory. The examples for each of them are following:

Documentation

The package's consumers can modify all kind of configuration options. They may customize password length plus minimum and maximum sizes. The available configuration options are:

  • upperCase: use alphabet upper letters [A-Z]
  • lowerCase: use alphabet lower letters [a-z]
  • digits: all numbers [0-9]
  • special: special symbols ~, !, @, #, ...
  • brackets: all kind of brackets (, ), {, }, [, ]
  • minus: minus sign -
  • underline: underline sign _
  • space: space character ' '
  • length: define password string size (symbols count)

It is allowed to change the characters pattern for specific group type (upperCase, lowerCase, etc) via "Storage" static class.

Author

Lachezar Mihaylov Contact: me@lacho-portfolio.com

License

The MIT License (MIT)