coolstudio/words-php 问题修复 & 功能扩展

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

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

coolstudio/words-php

最新稳定版本:1.0.4

Composer 安装命令:

composer require coolstudio/words-php

包简介

A collection of word lists for various categories and languages

README 文档

README

A PHP library containing word lists for various categories and languages. This library is generated from the cool-studio/words repository.

Installation

You can install the package via composer:

composer require words-studio/words-php

Usage

Getting all words in a list

use Words\EN\Animals;

// Get all words
$allAnimals = Animals::words();

Getting a random word

use Words\EN\Animals;

// Get a random word
$randomAnimal = Animals::word();

Available Word Lists

The library includes the following word lists:

English (EN)

  • Animals
  • SciFi
  • Space
  • Tech
  • Words (General words)

Generating/Updating Word Lists

Word lists are generated from the cool-studio/words repository. To update the word lists or generate new ones:

  1. Make sure you have Node.js installed
  2. Run the generation script:
node generate.js

This will:

  1. Clone or update the words repository
  2. Generate PHP classes for each word list
  3. Update the version in composer.json

License

This project is licensed under the MIT License - see the LICENSE file for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-03-12