GROU.PS Web 2.0 APIGROU.PS Web is a general purpose PHP API, created for use in Web 2.0 sites. | |
Download |
GROU.PS Web 2.0 API Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- GROU.PS
- Publisher web site:
- http://grou.ps:8000/groups/wiki/PHPWeb2.0API
GROU.PS Web 2.0 API Tags
GROU.PS Web 2.0 API Description
GROU.PS Web is a general purpose PHP API, created for use in Web 2.0 sites. GROU.PS Web is a general purpose PHP API, created for use in Web 2.0 sites. It includes frequently used design patterns of well known web 2.0 sites. For a correct definiton of Web 2.0, you may want to check http://en.wikipedia.org/wiki/Web_2.0Our API currently has 2 classes:1) TagCloud?.class.phpFeed the class with your own data, and create Web 2.0 style tag clouds2) Utility.class.phpGeneral purpose functions. For instance getStyledDateDiff gives nicely formatted date differences that are in use in digg.com and grou.psThe APIs are not complete yet. We are open to any ideas, wished coming from you.Usage:Tag Cloud Example< ?phprequire_once('/path/to/TagCloud.class.php');$tc = new TagCloud();$tc->setMinFontSize(8);$tc->setMaxFontSize(20);$tc->setDistributionType(TC_RANDOM_DISTRIBUTION);$tc->setDataClass('tags');$tc->addData('love',10);$tc->addData('sex',20);$tc->addData('food',5);$tc->addData('business',1);$tc->addData('PHP',2);$res = $tc->generate();echo $res;? >Utility Example:< ?phprequire_once('/path/to/Utility.class.php');$start_date = "September 21, 1999";$end_date = "yesterday";$u = new Utility();$datediff = $u->getStyledDateDiff($start_date,$end_date);$birthday = "11 January 1978";$zodiacsign = $u->getZodiacSign($birthday);echo $datediff;echo "";echo $zodiacsign;? >
GROU.PS Web 2.0 API Related Software