Gtkhtml was a reasonably typical binding for PHP-GTK, involved 3 step process

Most GTK widgets are designed to have language bindings, so Apart from getting the C memory management right! - The Overrides file is the key time consumer.