06/08
2016
An unofficial PHP wrapper for the Pizzaboy API
$user = $pizzaboy->login(<email>,<password>);
$order = $user->newOrder();
$order ->newPizza('medium','hand-tossed') ->setCheese('whole','normal') ->setSauce('tomato','normal') ->addPepperoni() ->addPineapple() ->save();
$order ->address() ->setStreet($_POST['street']) ->setCity($_POST['city']) ->setRegion($_POST['state']) ->setPostalCode($_POST['postal_code']) ->save();
if($order->place()) { echo "Order placed!"; }else{ echo "Order was not placed."; }