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!
Written by Picrasma-Excelsa
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Php
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#