2017 © Pedro Peláez
 

library dictionary

A dictionary of city slangs

image

verem/dictionary

A dictionary of city slangs

  • Monday, October 5, 2015
  • by danverem
  • Repository
  • 2 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

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., (*1)

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, (*2)

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, (*3)

Run this on bash to execute the tests ```````bash /vendor/bin/phpunit, (*4)


#Install - To install this package, PHP 5.5+ and Composer are required ````bash 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., (*5)

Contributing

Please check out CONTRIBUTING file for detailed contribution guidelines., (*6)

Credits

Urban dictionary is maintained by Verem Dugeri., (*7)

License

Urban dictionary is released under the MIT Licence. See the bundled LICENSE file for more details., (*8)

The Versions

05/10 2015

dev-master

9999999-dev

A dictionary of city slangs

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

dictionary urban

17/09 2015

dev-feature/hotfix

dev-feature/hotfix

A dictionary of city slangs

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

dictionary urban