dara-tobi / urbandict

Dictionary of common modern slangs
MIT License
1 stars 1 forks source link

UrbanDict

UrbanDict is a compilation of common slangs. It is a simple project that demonstrates the use of simple and basic programming concepts.

Design

Classes

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 in your terminal to execute the tests

 /vendor/bin/phpunit

Install

composer require `dara/urbandict`

Usage

$dictionary = new DictStore();
$dictTool = new DictTool();
$meaning = $dictTool->getSlang($dictionary,'crash');
$add = $dictTool->addSlang($dictionary, 'jump', 'To run from the police', 'Tunde will jump despite the warning from the judge');
$edit = $dictTool->editSlang($dictionary,'tight','A very impressive performance');
$delete = $dictTool->deleteSlang($dictionary,'tight');

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

Open-source Evangelist is maintained by Dara Oladosu.

License

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