2017 © Pedro Peláez
 

library pizzaboy

An unofficial PHP wrapper for the Pizzaboy API

image

wndrfl/pizzaboy

An unofficial PHP wrapper for the Pizzaboy API

  • Saturday, August 6, 2016
  • by wndrfl
  • Repository
  • 3 Watchers
  • 2 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Pizzaboy

1. Authenticate a user with their Dominos account credentials

$user = $pizzaboy->login(<email>,<password>);

2. Create a new order

$order = $user->newOrder();

3. Add a pizza to this order

$order
    ->newPizza('medium','hand-tossed')
    ->setCheese('whole','normal')
    ->setSauce('tomato','normal')
    ->addPepperoni()
    ->addPineapple()
    ->save();

4. Set a delivery address for this order

$order
    ->address()
    ->setStreet($_POST['street'])
    ->setCity($_POST['city'])
    ->setRegion($_POST['state'])
    ->setPostalCode($_POST['postal_code'])
    ->save();

5. Place the order!

if($order->place()) {
    echo "Order placed!";
}else{
    echo "Order was not placed.";
}

The Versions

06/08 2016

dev-master

9999999-dev

An unofficial PHP wrapper for the Pizzaboy API

  Sources   Download

The Requires

  • php >=5.3.0

 

by Johnnie Munger

06/08 2016

v1.0.0

1.0.0.0

An unofficial PHP wrapper for the Pizzaboy API

  Sources   Download

The Requires

  • php >=5.3.0

 

by Johnnie Munger