I got emails on the same day from two developers letting me know about ExtJS wrappers for PHP.
PHP-Ext
First, Sergei Walter Guerra told me about PHP-Ext "an open source widget library written for PHP 4 and 5 to empower the UI Layer."
The API looks like this:
Javascript::stm(ExtQuickTips::init()),
Javascript::assign("data",Javascript::valueToJavascript($myData)),
//Javascript::valueToJavascript($myData),
$store->getJavascript(false, "ds"),
$italicRenderer,
$changeRenderer,
$pctChangeRenderer,
$colModel->getJavascript(false, "colModel"),
$gridForm->getJavascript(false, "gridForm")
);
$gridForm = new ExtFormPanel("company-form");
$gridForm->Frame = true;
$gridForm->LabelAlign = EXT_FORM_LABEL_ALIGN_LEFT;
$gridForm->Title = "Company Data";
$gridForm->BodyStyle = "padding: 5px;";
$gridForm->Width = 750;
$gridForm->Layout = EXT_CONTAINER_LAYOUTS_COLUMN;
ExtPHP
Then Chris Ravenscroft came to me to announce ExtPHP:
"It is something that I had to think about in my day job, because my team is migrating to PHP for web development and I believe that we simply do not have enough time for them to learn JavaScript's intricacies, I needed to be the one person who would have to wrestle JavaScript when problems happened. I therefore needed a way to insulate them from the gory details, which is why I created ExtPHP."
The API looks like this:
$viewport = new Ext_Viewport(
$cfg->
layout('border')->
items(array($actionpanel, $tabpanel->name()))
);
$viewport->jsrender();
$tabpanel->add(
array('title'=>'New Tab', 'iconCls'=>'tabs', 'autoLoad'=>
array('url'=>'extphptest.php?content1'),
'closable'=>true
)
);
new JsReady(JsWriter::get());
Maybe you guys can join forces? :)




