2017 © Pedro PelĂĄez
 

library urban-dictionary

Make your dictionary of slangs.

image

opeyemiabiodun/urban-dictionary

Make your dictionary of slangs.

  • Sunday, November 22, 2015
  • by andela-oogunjimi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Urban-Dictionary

Latest Version on Packagist ![Software License][ico-license] Build Status Code Coverage Scrutinizer Code Quality, (*1)

CheckPoint 1/a; Urban-Dictionary Agnostic PHP Package

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)

Install

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]; */ ?>

Change log

Please see CHANGELOG for more information what has changed recently., (*5)

Testing

bash $ composer test, (*6)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*7)

Security

If you discover any security related issues, please email opeyemi.ogunjimi@andela.com instead of using the issue tracker., (*8)

Credits

License

The MIT License (MIT). Please see License File for more information., (*9)

The Versions

22/11 2015

dev-master

9999999-dev https://github.com/andela-oogunjimi/Urban-Dictionary

Make your dictionary of slangs.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

by Ogunjimi Opeyemi Abiodun

opeyemiabiodun urban-dictionary