承接 kovah/taboo-data 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

kovah/taboo-data

Composer 安装命令:

composer require kovah/taboo-data

包简介

A dataset for Taboo games

README 文档

README

 

Taboo-Data

 

Current version GitHub Workflow Status (branch) License

A data set for Taboo games. Plain JSON files which contain the keyword, and some buzzwords like in the original Taboo game. It was originally created for my Taboo browser game.

Available languages: English, German

 

Data Structure

All lists are structured by using a key > value based approach. This means that the array keys contain the keyword like Bear and the array values contain the buzzwords, like Grizzly, Honey, Pooh.

Instead of having to parse all entries like before, you can now decode the whole file contents and directly use all entries out of the box.

 

Usage

You can use the data set by downloading it or use one of the following methods:

Javascript

npm install taboo-data
or
yarn add taboo-data

Here's an example on how to use the package with Javascript:

import { TabooData } from 'taboo-data';

// Get all available languages, their categories and the category descriptions
const categories = TabooData.categories();

// Get the keywords for a specific category and language
const animals = await TabooData.getCategory('animals', 'de');

Please notice that importing the whole TabooData dataset will bloat your Javascript files as all entries from all categories are loaded. To import single categories manually or asynchronously, you can call them on their own:

import * as cars from 'taboo-data/src/data/de/cars';

const data = cars;

PHP

composer require kovah/taboo-data

Here's an example on how to use the package with PHP:

<?php
use Kovah\TabooData;

$categories = TabooData::getCategories();

$cars = TabooData::getCategory('cars');
// or
$carsDE = TabooData::getCategory('cars', 'de');

 

Contributing

Found a bug or typo? Have a feature request?

Please open a new issue and explain what's wrong or what needs to be improved.

Words

To contribute words, just add them to the appropriate category and add at least 3-4 buzzwords.

 

Taboo Data is a project by Kevin Woblick and Contributors

统计信息

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

GitHub 信息

  • Stars: 14
  • Watchers: 3
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2019-05-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固