Skip to content
PHP Client for mmjmenu
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Mmjmenu.php Init commit Apr 2, 2011
README.markdown

README.markdown

Setup

require '/home/justin/apps/php/mmjmenu-php-client/Mmjmenu.php';
$client = new Mmjmenu('API_KEY');

Examples

List Menu Items

$menuItems      = $client->menuItems();
$menuItems      = json_decode($menuItems, true);

foreach($menuItems['menu_items'] as $item){
    print($item['name']);
}

Get a Menu Item

$menuItem      = $client->menuItem('123')
$menuItem      = json_decode($menuItem, true);
$menuItem      = $menuItem['menu_item'];

print($menuItem['name']);
You can’t perform that action at this time.