Last Updated: June 08, 2016
·
485
· florenceokosun

Build a simple Urban dictionary agnostic of common slangs & meanings

So what's this really?

Simply put, its an an associative array containing common slangs and their meaning plus usage.

What will this package do really?

It will perform the basic CRUD operations

Run down of the classes needed

  • Data class
  • Dictionary class (methods for the CRUD operations)
  • Exception class

Your composer.json should look something like this:

"require": {
    "php" : ">=5.5.9",
    "phpunit/phpunit": "4.8.*"
}

Here's a typical example of what the Data class looks like:

class Data {
/**
* @var array $data
*/

public static $data = [    
"Lift" => [
 "description"     => "To steal an item",
 "sample-sentence" => "Ian lift her phone.
]];
}

So like was said before, the idea is to perform the basic CRUD operations on the Data class. These operations are implemented in the Dictionary class.

Fork or clone my repo to get the code

And that's about it!