GPCL is an object-oriented library for PHP, developed by me and used last ears. Today I write an introduction about GPCL . In few words, with GPCL you can write: include("documents.php"); class MyDoc extends TDocument { function __construct($title) { parent::__construct($title); $this->body->AddHeading(1)->content = "Hello, World!"; } } $doc = new MyDoc("Welcome!"); $doc->PrintAll(); On output you get well-formatted HTML document with "Hello, World" heading and "Welcome" Title.