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:
- Make sure you have Node.js installed
- Run the generation script:
node generate.js
This will:
- Clone or update the words repository
- Generate PHP classes for each word list
- 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
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-12