gerelajos/meowmaker 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gerelajos/meowmaker

最新稳定版本:v0.4.0

Composer 安装命令:

composer require gerelajos/meowmaker

包简介

A small package to generate cat based fake data

README 文档

README

MeowMaker is a simple PHP package that generates random cat data. It is useful for testing and seeding databases.

MeowMaker Logo

Installation

You can install the package via composer:

composer require gerelajos/meowmaker

Usage

Basic usage

use GereLajos\MeowMaker\Meow;

$meow = new Meow();
$name = $meow->name(); // "Whiskers"
$names = $meow->names(5); // ["Whiskers", "Mittens", "Fluffy", "Tiger", "Smokey"]

Generate names

$name = $meow->name(); // "Whiskers"
$names = $meow->names(5); // ["Whiskers", "Mittens", "Fluffy", "Tiger", "Smokey"]

$maleName = $meow->maleName(); // "Whiskers"
$maleNames = $meow->maleNames(5); // ["Whiskers", "Mittens", "Fluffy", "Tiger", "Smokey"]

$femaleName = $meow->femaleName(); // "Luna"
$femaleNames = $meow->femaleNames(5); // ["Luna", "Bella", "Lucy", "Kitty", "Daisy"]

$lastName = $meow->lastName(); // "Tabbyfield"

$fullName = $meow->fullName(); // "Toby Tabbyfield"
$fullMaleName = $meow->fullMaleName(); // "Toby Tabbyfield"
$fullFemaleName = $meow->fullFemaleName(); // "Luna Furbridge"

Generate addresses

$address = $meow->address(); // " Slinkyside, Clawchester, Tabby Crossroad 228, 4725"
$country = $meow->country(); // "Purrch Republic"
$city = $meow->city(); // "Whisperwind"
$street = $meow->street(); // "Meow Highway"
$postcode = $meow->postcode(); // "4725"
$buildingNumber = $meow->buildingNumber(); // "228"

Generate miscellaneous items

$email = $meow->email(); // "agile.chester.461@acrobaticcats.net"
$emails = $meow->emails(3); // ["agile.chester.461@acrobaticcats.net, leaping.phoebe.763@dociledome.com, soft.ruby.261@agilealley.io"]

$phone = $meow->phone(); // "+61423832405"
$company = $meow->company(); // "Velvet Ventures S.E."
$jobTitle = $meow->jobTitle(); // "Soft Paws Therapist"

Generate words, sentences and paragraphs

$word = $meow->word(); // "meow"
$words = $meow->words(5); // ["meow", "purr", "hiss", "yowl", "growl"]

$sentence = $meow->sentence(); // "The cat meowed."
$sentences = $meow->sentences(5); // ["The cat meowed.", "The cat purred.", "The cat hissed.", "The cat yowled.", "The cat growled."]

$paragraph = $meow->paragraph(); // "The cat meowed. The cat purred. The cat hissed."
$paragraphs = $meow->paragraphs(5); // ["The cat meowed. The cat purred. The cat hissed.", "The cat yowled. The cat growled. The cat meowed.", "The cat purred. The cat hissed. The cat yowled.", "The cat growled. The cat meowed. The cat purred.", "The cat hissed. The cat yowled. The cat growled."]

Items modifiers

Items can be modified various ways. For example, you can

$items->add(Item $item); // Add an item to the collection
$items->shuffle(); // Shuffle the items in the collection
$items->unique(); // Get only unique items from the collection
$items->unique(); // Get only unique items from the collection
$items->filter(callable $callback); // Filter the items in the collection

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2024-04-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固