定制 nicolaskuster/laravel-memorable-passwords 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

nicolaskuster/laravel-memorable-passwords

Composer 安装命令:

composer require nicolaskuster/laravel-memorable-passwords

包简介

Package to generate memorable passwords

README 文档

README

Generates noticeable passwords from a list of available words separated by a delimiter.

In the config file you will find some options:

  • number_of_parts: Number of words the password should have
  • number_of_uppercase_letters: Number of capital letters that should have the password
  • number_of_numbers: Number of numbers the password should have
  • words: List of all available words
  • delimiters: List of all available word separators

Installation

You can install the package via composer:

composer require nicolaskuster/laravel-memorable-passwords

You can publish the config-file with:

php artisan vendor:publish --provider="Nicolaskuster\MemorablePasswords\Providers\MemorablePasswordServiceProvider"

Usage examples

Code:

for ($i = 0; $i < 10; $i++) {
    \Nicolaskuster\MemorablePasswords\MemorablePassword::generate();
}

config:

return [
    'number_of_parts'=> 2,
    'number_of_uppercase_letters'=> 2,
    'number_of_numbers'=>2,
    'words' => [
        //...
    ],
    'delimiters' => [
        '-',
        '.',
        '_',
    ]
]

output:

Milch9-salZ1
raHm9_fencheL4
honiG2-wAsser3
Pfeffer1.huNd5
milCh3-fEnchel7
hUnd5_gLas1
Pfeffer7_rahM6
pfEffer3-aUto4
Wein4_huNd2
pfEffer4-glAs5

Testing

You can run all the tests with:

composer test

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-03-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固