定制 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
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固