承接 jerezjustin/random-password-generator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jerezjustin/random-password-generator

最新稳定版本:v1.0.1

Composer 安装命令:

composer require jerezjustin/random-password-generator

包简介

Basic and easy-to-use random password generator

README 文档

README

This is a basic password generator created with the finality of learning the process of creating packages using PHP.

How to use

To install the package just run the following command in the terminal:

composer require jerezjustin/random-password-generator

The password generator is easy to use it consists of only one class to generate password. Here is an example of how can you use it.

$passwordGenerator = new JerezJustin\PasswordGenerator();

$password = $passwordGenerator->generate();

By default, the password generator will include lowercase, uppercase and numeric characters, and it will have a default length of 8 characters. This can be changed by providing a value for the different arguments to the constructor of the class.

$passwordGenerator = new JerezJustin\PasswordGenerator(
    length: 8,
    lowercase: true,
    uppercase: true,
    numbers: true,
    specialCharacters: false   
);

$password = $passwordGenerator->generate();

Additionally, you can call methods to configure the password generator as in the following example:

$passwordGenerator = new JerezJustin\PasswordGenerator();

$password = $passwordGenerator
                ->length(8)
                ->includeLowercase(true)
                ->includeUppercase(true)
                ->includeNumbers(true)
                ->includeSpecialCharacters(false)
                ->generate();

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-21