定制 verem/dictionary 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

verem/dictionary

Composer 安装命令:

composer require verem/dictionary

包简介

A dictionary of city slangs

README 文档

README

#Urban Dictionary The urban dictionary is a compilation of city slangs. It is a simple project that demonstrates the use of simple and basic programming concepts.

#Design

Classes

  • Dictionary: The main dictionary
  • DictionaryManager: The data access layer, responsible for performing CRUD operations on the dictionary.
  • RankWords: Returns a word count in descending order of words used in sample sentences in the dictionary

#Testing The phpunit framework for testing is used to perform unit test on the classes. The TDD principle has been employed to make the application robust

Run this on bash to execute the tests

/vendor/bin/phpunit

#Install

  • To install this package, PHP 5.5+ and Composer are required
composer require verem/dictionary

#usage

  • Populating the dictionary with sample words
Dictionary::populateDictionary();
  • Create a manager instance
$manager = new DictionaryManager();
  • Create an entry - Returns mixed
$array =  $manager->createEntry($word, $meaning, $sampleSentence);
  • Edit an entry - Returns mixed
$array = $manager->editEntry($word);
  • DeleteEntry - Returns an array
$dictionary = $manager->deleteEntry($word)
``````

- Find an entry - Returns mixed

``````
$word = findEntry($word);
``````

- Get the dictionary

``````
$dictionary = Dictionary::getDictionary();

Change log

Please check out CHANGELOG file for information on what has changed recently.

Contributing

Please check out CONTRIBUTING file for detailed contribution guidelines.

Credits

Urban dictionary is maintained by Verem Dugeri.

License

Urban dictionary is released under the MIT Licence. See the bundled LICENSE file for more details.

统计信息

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

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固