webdevgods/wdg-cafepress

A ZF2 Cafepress module.

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 0

Open Issues: 0

Type:zf-module

pkg:composer/webdevgods/wdg-cafepress

dev-master 2014-08-28 12:32 UTC

This package is not auto-updated.

Last update: 2025-10-07 07:22:24 UTC


README

##Install

Add WdgCafepress to your project's composer.json

"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.Add your apikey and store id to the wdgcafepress.global.php file.

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.

##Usage

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

$sections = $cafepress_service->getStoreSections();

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