2017 © Pedro Peláez
 

zf-module wdg-cafepress

A ZF2 Cafepress module.

image

webdevgods/wdg-cafepress

A ZF2 Cafepress module.

  • Thursday, August 28, 2014
  • by webdevgods
  • Repository
  • 3 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

WdgCafepress

Install

Add WdgCafepress to your project's composer.json, (*1)

"require": {
    "php": ">=5.3.3",
    "webdevgods/wdg-cafepress": "dev-master",
}

Setup

1.Copy wdgcafepress.global.php.dist to your config/autoload folder and remove the .dist extension., (*2)

2.Add your apikey and store id to the wdgcafepress.global.php file., (*3)

return array(
    "wdgcafepress" => array(
        "apikey" => "",
        "storeid" => "",
        "baseurl" => "http://open-api.cafepress.com/" //Cafepress api base url
    )
);

3.Add WdgCafepress to your application.config.php "modules" array., (*4)

Usage

$cafepress_service = $service_locator->get("wdgcafepress_service_cafepress");

$sections = $cafepress_service->getStoreSections();

foreach($sections as $section)
{
  echo $section->getCaption()."<br />";
}

The Versions

28/08 2014

dev-master

9999999-dev https://github.com/webdevgods/WdgCafepress

A ZF2 Cafepress module.

  Sources   Download

MIT

The Requires

 

api library zf2 zend framework module libs webdevgods wdg cafepress