Initial Implementation of Gagawa in PHP Now Available!

| No TrackBacks
gagawa.pngIt's the day after Christmas and not a whole lot is going on at the moment.  My girlfriend is at work, HP is closed for two-weeks, and I'm stuck at home bored out of my mind.  So, I decided to write some code.  I finished up an initial implementation of Gagawa in PHP.  The PHP libraries can be found in the Gagawa Google Code SVN repository.  If you are not familiar with Gagawa, my Gagawa Project page should help explain things a bit.  In a nutshell, the Gagawa library lets you build well-formed HTML and do other awesome things in PHP/Java like this:

$a = new A();

// Note you can daisy chain attribute setters.
$a->setHref( "http://kolich.com" )
  ->setTarget("_blank")
  ->setCSSClass("linkclass")
  ->setId("myid")
  ->setAttribute("other","value");

echo $a->write();
Calling write() on this A (a link/anchor tag) produces a well formed link, an <a> tag, with all of the correct attributes set.  This frees the developer from having to hand write HTML in a web-application.  Even more importantly, Gagawa virtually eliminates missed closing tags and other mundane HTML typos that often haunt web-developers.  See the Gagawa PHP Example for more sample code.

Download the complete pre-packaged Gagawa PHP library here.  To include the library in your PHP application, use require_once("gagawa-1.0.php").

Did You Find this Helpful?

Did you find this post helpful, or at least, interesting?

  

Send Mark a Direct Message

If you'd like to send me a direct message, please do so below. However, I do not publicly post comments or messages submitted directly to me. So, if you're going to try to SPAM me, or my blog, you're pretty much wasting your time.

400 characters remaining

Error

About Mark

A Silicon Valley native, Mark Kolich is a full-time Software Engineer, a casual entrepreneur, and a consultant for hire. A web technologies expert, his current focus is on building powerful and robust cloud-driven web-applications using Java, PHP, Perl, AJAX, DHTML, CSS, and JavaScript. His favorite programming languages are PHP, Java and JavaScript. He uses Linux, enjoys biking to work, loves building great software, and always writes elegant, readable, and maintainable code.

No TrackBacks

No trackbacks attached to this entry.

Twitter (@markkolich)

Translate

About this Entry

This page contains a single entry by Mark Kolich published on December 26, 2008 12:14 PM.

Their avid listeners are giving St. Francis High's KSFH a Great Reception was the previous entry in this blog.

HOWTO: Get Dual Displays Working with an HP 8510w Notebook (Nvidia+Fedora 7) is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.