dev-master
9999999-dev https://github.com/andela-oogunjimi/Urban-DictionaryMake your dictionary of slangs.
MIT
The Requires
- php >=5.6.0
The Development Requires
by Ogunjimi Opeyemi Abiodun
opeyemiabiodun urban-dictionary
Wallogit.com
2017 © Pedro PelĂĄez
Make your dictionary of slangs.
![Software License][ico-license]
, (*1)
The package enables the non-persistent storage of data. Specifically; slangs, their meanings and examples of sentences where they are used. Creating, reading, updating and deleting records of these slangs are also made possible by this package. Finally, the package can also rank words within sentences by the number of occurences of these words within the sentences. PSR-2 coding standard was adopted in writing the package. The PSR-4 autoloading convention was also adopted., (*2)
Via Composer, (*3)
``` bash $ composer require opeyemiabiodun/urban-dictionary, (*4)
## Usage ``` php add($slang, $description, $sampleSentence); Dictionary::getInstance()->read($slang); Dictionary::getInstance()->select($slang); Dictionary::getInstance()->update($slang, $description, $sampleSentence); Dictionary::getInstance()->delete($slang); Dictionary::getInstance()->getAll(); Dictionary::getInstance()->clear(); /* To update a slang in the dictionary.First select it before passing in updated values. */ Dictionary::getInstance()->select($slang); Dictionary::getInstance()->update($slang, $description, $sampleSentence); $_sentences = âAndrei: Prosper, Have you finished the curriculum?. Prosper: Yes. Andrei: Tight, Tight, Tight!!!â $wordsRank = Rank::getInstance()->execute($_sentences); /* $wordsRank = [âTightâ => 3, âProsperâ => 2, âYesâ => 1, âHaveâ => 1, âyouâ => 1, âfinishedâ => 1, âtheâ => 1, âcurriculum?â => 1]; */ ?>
Please see CHANGELOG for more information what has changed recently., (*5)
bash
$ composer test, (*6)
Please see CONTRIBUTING and CONDUCT for details., (*7)
If you discover any security related issues, please email opeyemi.ogunjimi@andela.com instead of using the issue tracker., (*8)
The MIT License (MIT). Please see License File for more information., (*9)
Make your dictionary of slangs.
MIT
opeyemiabiodun urban-dictionary