PHP Classes

CafePress Random Product: Display a random product from your CafePress store

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 37%Total: 464 All time: 6,055 This week: 524Up
Version License Categories
cafepressbox 1.0Free for non-comm...Web services
Description 

Author

This class will display a random product from your CafePress store

You can supply a simple template to control style, and have the output link directly to the shown product or simply to your main account.

You can cache the results so you don't have to connect to the CafePress website all the time.

Images can also be cached locally, and can be resized before caching.

Picture of Andrew Collington
  Performance   Level  
Name: Andrew Collington <contact>
Classes: 16 packages by
Country: United Kingdom
Age: 50
All time rank: 563 in United Kingdom
Week rank: 46 Up4 in United Kingdom Down
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files (2)  
File Role Description
Plain text file class.cafepressbox.php Class The main class file. The regular expression pattern used to parse the output from CafePress will need to be changed any time CP update their output.
Accessible without login Plain text file test.cafepressbox.php Example A simple example file.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:464
This week:0
All time:6,055
This week:524Up
 User Ratings  
 
 All time
Utility:50%StarStarStar
Consistency:66%StarStarStarStar
Documentation:-
Examples:58%StarStarStar
Tests:-
Videos:-
Overall:37%StarStar
Rank:4024