nordpeak/random-names-generator
Composer 安装命令:
composer require nordpeak/random-names-generator
包简介
Small library that generates a Docker like random name from the list of adjectives and surnames of famous people in the science and tech world.
README 文档
README
Small library that generates a Docker like random name from the list of adjectives and surnames of famous people in the science and tech world.
Examples
- inspiring-wozniak
- nifty-einstein
- nervous.carson
- goofy-cartwright-93
- dazzling.austin.12837
Installation
This package uses composer so you can just add nordpeak/random-names-generator as a dependency to your composer.json file or execute the following command:
composer require nordpeak/random-names-generator
Usage
Nothing too fancy here.
use Nordpeak\NamesGenerator; // default behaviour NamesGenerator::generate(); // => "inspiring-wozniak" // change delimiter NamesGenerator::generate(["delimiter" => "."]); // => "nifty.einstein" // with additional random token NamesGenerator::generate(["token" => 5]); // => "quirky-hoover-82736"
Options
The following options are available:
NamesGenerator::generate([ "delimiter" => "-", "token" => 4 ]);
Credits
Heavily inspired and sourced from the docker namesgenerator library.
https://github.com/moby/moby/tree/master/pkg/namesgenerator
Code and setup based on atrox/haikunator library.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-08