Archive for June 19th, 2006

ThinkingPHP: Google Analytics PHP API (CakePHP Model)

From the ThinkingPHP blog today, there’s a new post that looks at combining to great things - the CakePHP project and Google Analytics - into a tool using Google’s API to grab a sites stats.

About 2 weeks ago, I recieved an e-mail in which one of my readers pointed out the existance of a couple wordpress plugins, that offer Google Analytics statistics. One of them also seems to be pretty popular and so far Google hasn’t stopped any of the creators from providing them.

For this reason I decided to release my Api as well, and let you decide about the ways to use it. I’m sure you’ll find some interestings things to do with it. Since I already started my new Web Model package over at cakeforge I just added the Google Analytics Model to it.

Not only does he provide all the code you’ll need, but he also includes an online demo so you can test out the functionality before putting in the work. You’ll need the CakePHP framework (obviosuly) to get it all working. The code to use the actual API is pretty simple and behaves “like a simulated browser” to grab the data needed. Reports are cached locally (default is 2 hours) so as not to have to make API calls constantly.

Continue Reading · Add comment

15tags Blog: Tagcloud demo with source!

On the 15tags blog today, there’s a look at creating a tagcloud for your site, complete with a demo and the source for the project.

I should have done anything but creating this demo, but I took the time and did it anyway. So here it goes: A demo of the tagcloud script I wrote, in action. If you want to influence the tagcloud you can do this by writing down a comment on this post.

They demonstrate the tool with a simple cloud (made up of common words) and included support for Unicode characters. The cloud in the post changes based on the comments made on the post.

You can grab the source here.

Continue Reading · Add comment

Marcus Whitney’s Blog: A/R/T Is Seeking Columnists

Marcus Whitney has a quick note today on his blog about php|architect’s search for columnists to write for their A/R/T article repository.

Just a heads up to all you incredible PHP writers out there. I am actively looking for columnists to contribute to A/R/T on a weekly, bi-weekly and monthly basis. If you want to get lots of paid experience as a technical writer, contact me at marcus-AT-phparch.com. Thanks.

Check out some of the current articles already posted there to get an idea of what they’re looking for - things like Writing an Ajax-based Visual Rating System with PHP and An Overview of the CakePHP Framework.

Continue Reading · Add comment

php|architect: Pro::PHP Podcast Interview with Jacob Taylor

php|architect’s Pro::PHP Podcast has posted their latest show fron this past Friday - an itnerview with Jacob Taylor of the SugarCRM project.

On June 16th, we interviewed SugarCRM’s Chief Architect and Co-Founder, Jacob Taylor. Jacob defines, manages and develops the core Sugar Suite technology and has designed Sugar Suite to be one of the most conducive open source application projects for community development and contribution because of its modular architecture, high quality coding and superior scalability. Listen to Jacob explain why he chose PHP as the language to develop SugarCRM in, and how they are using it to make a huge impact in the CRM market.

You can grab the MP3 of the show directly from here or simply subscribe to the feed to get the latest shows as they come out!

Continue Reading · Add comment

DevShed: Loading XML Strings with simpleXML in PHP 5

DevShed continues their “Using SimpleXML in PHP5″ series today with a bit more complex look (part two) at loading in preexisting XML strings to be manipulated.

Are you looking forward to learning about loading XML data strings, as well as searching and accessing nodes? Then this is the tutorial you’ve been waiting for since last week! Welcome to the second part of the series “Working with simpleXML in PHP 5.” This three-part series introduces the most important features of the “simpleXML” extension that comes with PHP 5, and shows by several hands-on examples how to implement the handy set of XML-parsing functions that are included in this library.

They start by demonstrating the simplexml_load_string functionality to simply grab the data and follow it with a method to pull out just the data you need from the resulting object. Finally, they help you construct an XMLParser class to show a more object-oriented approach to performing the same tasks.

Continue Reading · Add comment