<?xml version="1.0"?>
<rss version="2.0">
  <channel>
    <title>PHPDeveloper.org</title>
    <link>http://www.phpdeveloper.org</link>
    <description>Up-to-the Minute PHP News, views and community</description>
    <language>en-us</language>
    <pubDate>Sat, 18 May 2013 06:32:51 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[We Love PHP Blog: Using V8 Javascript engine as a PHP extension]]></title>
      <guid>http://www.phpdeveloper.org/news/18272</guid>
      <link>http://www.phpdeveloper.org/news/18272</link>
      <description><![CDATA[<p>
From the "Web Love PHP" blog there's <a href="http://we-love-php.blogspot.de/2012/07/using-v8-javascript-engine-as-php.html">a new post</a> showing how to use the V8 Javascript engine as a PHP extension in your application.
</p>
<blockquote>
Just got to something described as: This extension embeds the <a href="http://en.wikipedia.org/wiki/V8_%28JavaScript_engine%29">V8 Javascript Engine</a> into PHP. It is called v8js and the documentation is already available on <a href="http://php.net/manual/en/book.v8js.php">php.net</a>, examples and the sources are <a href="https://github.com/preillyme/v8js/tree/master/samples">here</a>. V8 is known to work well in browsers and webservers like node.js, but does it work inside PHP? YES!
</blockquote>
<p>
They show how to get it installed (on Ubuntu) via a PECL install and a test script with some Javascript in a string variable that's parsed by the "executeString" function on a V8 object. There's also an example of how you can mix the functionality between the two - a simple script that uses a PHP PDO object fron inside the Javascript to perform a SQL query and set some information into the session.
</p>]]></description>
      <pubDate>Wed, 25 Jul 2012 11:50:36 -0500</pubDate>
    </item>
  </channel>
</rss>
