<?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>Tue, 18 Jun 2013 00:48:34 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[/Dev/Hell Podcast: Episode 30: It's Episode 30, You Guys]]></title>
      <guid>http://www.phpdeveloper.org/news/19391</guid>
      <link>http://www.phpdeveloper.org/news/19391</link>
      <description><![CDATA[<p>
The /Dev/Hell podcast has posted their latest episode - <a href="http://devhell.info/post/2013-03-29/its-episode-30-you-guys/">#30 - "It's Episode 30, You Guys"</a>:
</p>
<blockquote>
In our action-packed 30th episode Ed and Chris discussed their experiences with JavaScript testing tools, specifically how certain tools push you towards specific refactoring patterns. Chris talked about the successful launch of his <a href="http://grumpy-phpunit.com/">latest book on using PHPUnit</a> and got into some honest talk about revenue and how the <a href="http://unicornfree.com/30x500">product development course</a> helped him make this book do 4 times the launch day revenue of his previous one. Ed discussed his plans to <a href="http://www.indiegogo.com/projects/open-sourcing-mental-illness">talk about mental illness</a> on the conference circuit this year. Please help out by donating to the campaign!
</blockquote>
<p>
You can listen to this latest episode either using the <a href="http://devhell.info/post/2013-03-29/its-episode-30-you-guys/>in-page player</a> or by <a href="http://devhell.s3.amazonaws.com/ep30-64mono.mp3">downloading the mp3</a>. You can also <a href="http://feeds.feedburner.com/devhell-podcast">subscribe to the feed</a> to get this and future episodes as they're released.
</p>]]></description>
      <pubDate>Mon, 01 Apr 2013 10:19:04 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Create a Poll with PHPixie]]></title>
      <guid>http://www.phpdeveloper.org/news/19138</guid>
      <link>http://www.phpdeveloper.org/news/19138</link>
      <description><![CDATA[<p>
PHPMaster.com has a new tutorial posted showing you how to <a href="http://phpmaster.com/create-a-poll-with-phpixie/">create a simple poll</a> using the <a href="http://phpixie.com/">PHPixie</a> PHP framework, a MySQL backend and a little bit of Javascript.
</p>
<blockquote>
When choosing a PHP framework you need to make sure that it emphasizes features which are the most important to you. If you are looking for something fast, simple, and easy to learn than PHPixie may be a perfect choice. To illustrate the basics of developing with PHPixie we will create a small polling application. By the end of this tutorial you will have a working poll application and an understanding of how easy it is to code projects using PHPixie.
</blockquote>
<p>
They provide you with all of the parts you'll need - the database table definition, the code for the modules/views/controllers and the Javascript to handle the addition of new options. You can find the full code on the <a href="https://github.com/phpmasterdotcom/CreateAPollWithPHPixie">PHPMaster github account</a>.
</p>]]></description>
      <pubDate>Tue, 05 Feb 2013 12:53:44 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Authenticate Users with Mozilla Persona]]></title>
      <guid>http://www.phpdeveloper.org/news/18832</guid>
      <link>http://www.phpdeveloper.org/news/18832</link>
      <description><![CDATA[<p>
On PHPMaster.com there's a new tutorial from <i>Vito Tardia</i> about using the <a href="http://www.mozilla.org/en-US/persona/">Mozilla Persona</a> authentication system in your PHP application - an abstracted authentication system that keeps only a token representing the user in your system.
</p>
<blockquote>
Mozilla Persona is built upon the BrowserID technology also developed by Mozilla. You can find an expanded explanation of the concepts in the article <a href="http://lloyd.io/how-browserid-works">How BrowserID Works</a> by Lloyd Hilaiel. [...] An email address is an identity and it's verified by the email provider [then the] authentication takes place in the browser. 
</blockquote>
<p>
He talks about the three steps in the process (certificate provisioning, assertion generation and assertion verification) and includes some sample code that does the work for you with some PHP, HTML and Javascript. In his example he just authenticates the user and returns the success/fail back to the calling script. You could take it one step further and <a href="http://websec.io/2012/10/01/Using-Mozilla-Persona-with-PHP-jQuery.html">integrate it with the session handler</a> as well.
</p>]]></description>
      <pubDate>Mon, 03 Dec 2012 11:18:09 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Grzegorz Godlewski: PHP.Kryptik.AB - Give me your FTP!]]></title>
      <guid>http://www.phpdeveloper.org/news/18778</guid>
      <link>http://www.phpdeveloper.org/news/18778</link>
      <description><![CDATA[<p>
<i>Grzegorz Godlewski</i> has <a href="http://blog.twelvecode.com/2012/11/18/php-kryptik-ab-give-me-your-ftp/">written up a post</a> about a piece of PHP-related malware that, if it gets into your application, can render your site inaccessible (not to mention blocked by Google's "safe browsing") - PHP.Kryptik.AB.
</p>
<blockquote>
One could think a PHP Developer is free from viruses and malware - and be wrong. Meet PHP.Kryptik.AB - the PHP malware. If you already know this bastard - high five! But if you don't - be prepared! Basically the story starts from a standard computer trojan which (I suppose) attacks popular FTP clients that store FTP login credentials unencrypted. Then it sends fetched informations to a remote host which (by the cover of night) logs into the FTP servers and infects PHP base web-pages by injecting a piece of JavaScript code, that gets executed when a user enters a site.
</blockquote>
<p>
He describes the injected code, what kind of files the malware looks for when it executes and how you can fix the problem if you've already been infected. There's also a bit about how you can prevent yourself from being infected (including the suggestion of using something like <a href="http://keepass.info/">KeePass</a> or <a href="https://agilebits.com/onepassword">1Password</a> to manage and create harder to crack passwords).
</p>]]></description>
      <pubDate>Tue, 20 Nov 2012 14:14:04 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NetTuts.com: 20 All Too Common Coding Pitfalls For Beginners]]></title>
      <guid>http://www.phpdeveloper.org/news/18733</guid>
      <link>http://www.phpdeveloper.org/news/18733</link>
      <description><![CDATA[<p>
On NetTuts.com there's a great list of tips and things to keep in mind if you're a budding programmer - a set of <a href="http://net.tutsplus.com/tutorials/tools-and-tips/20-all-too-common-coding-pitfalls-for-beginners/">common pitfalls to watch out for</a> as you hone your skills.
</p>
<blockquote>
Regardless of our current skill level, we all were beginners at one point in time. Making classic beginner mistakes comes with the territory. Today, we've asked a variety of Nettuts+ staff authors to chime in with their list of pitfalls and solutions - in a variety of languages. Learn from our mistakes; don't do these things!
</blockquote>
<p>
The article starts off with some Javascript tips, but quickly gets into some more PHP specific things like:
</p>
<ul>
<li>Use Ternary When Appropriate
<li>Use Guard Clauses
<li>Keep Methods Maintainable
<li>Avoid Deep Nesting
<li>Don't Overuse Variables
</ul>
<p>
There's also two "extras" thrown in more concerning general programming practices - using methods to represent actions and some basic code readability suggestions.
</p>]]></description>
      <pubDate>Mon, 12 Nov 2012 14:52:59 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPClasses.org: Lately in PHP, Episode 27 - Running PHP code with JavaScript and Python VM]]></title>
      <guid>http://www.phpdeveloper.org/news/18453</guid>
      <link>http://www.phpdeveloper.org/news/18453</link>
      <description><![CDATA[<p>
PHPClasses.org has posted the latest episode of their "Lately in PHP" podcast series - <a href="http://www.phpclasses.org/blog/post/192-Running-PHP-code-with-JavaScript-and-Python-VM--Lately-in-PHP-podcast-episode-27.html">Episode #27</a>, "Running PHP code with JavaScript and Python VM".
</p>
<blockquote>
PHP applications popularity is so high that developers which prefer using other languages are trying to compile PHP code in languages like JavaScript and Python using new virtual machine projects. [...] They also cover the latest PHP releases and the new features planned for PHP 5.5, as well the new PHP elephant plush toys that were produced by the PHPClasses site to give away to the best contributors of the site.
</blockquote>
<p>
You can listen to this latest episode in a few different ways - either by <a href="http://www.phpclasses.org/blog/post/191/file/141/name/Lately-In-PHP-27.mp3">downloading the mp3</a>, <a href="http://www.phpclasses.org/blog/category/podcast/post/latest.rss">subscribing to their feed</a> or <a href="http://youtu.be/OShBrW6VLPs">watching the video</a> on their Youtube channel.
</p>]]></description>
      <pubDate>Thu, 06 Sep 2012 11:40:42 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Zumba Engineering Blog: Creating a testing interface for your API]]></title>
      <guid>http://www.phpdeveloper.org/news/18365</guid>
      <link>http://www.phpdeveloper.org/news/18365</link>
      <description><![CDATA[<p>
In a new post to the Zumba Engineering blog, they share <a href="http://engineering.zumba.com/2012/08/16/test-interface/">an interface they use for testing</a> on their API (after working with something similar from another company).
</p>
<blockquote>
They provide the <a href="http://support.ooyala.com/developers/documentation/concepts/book_api.html">documentation</a> to the methods and I saw they have a simple interface to test their methods: <a href="https://api.ooyala.com/docs/api_scratchpad?url=/assets&method=GET">Ooyala API Scratchpad</a>. This interface was very useful while we integrate with them and I thought: "Why we don't have one interface like that for our API?" I started a page with <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a> to have a similar functionality, which the goal was to get an interface easy to developers see the response for multiple HTTP protocols, set the parameters, etc.
</blockquote>
<p>
<a href="http://engineering.zumba.com/img/blog/test-interface-1.png">The interface</a> uses Javascript to make requests over to a RESTful API and returns the response JSON directly to the page. It's a little bit customized to how their API works, but it's a good foundation for anyone looking to implement something similar. You can get the full code for it <a href="https://gist.github.com/3365894">over on github</a>.
</p>]]></description>
      <pubDate>Thu, 16 Aug 2012 09:56:36 -0500</pubDate>
    </item>
    <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>
    <item>
      <title><![CDATA[BinaryTides.com: Javascript style object literals in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18270</guid>
      <link>http://www.phpdeveloper.org/news/18270</link>
      <description><![CDATA[<p>
On the BinaryTides.com site there's a recent post for those familiar with Javascript and wanting to have the same kind of <a href="http://www.binarytides.com/blog/javascript-style-object-literals-in-php/">object-style literals in PHP</a>.
</p>
<blockquote>
As similar thing [to Javascript object literals] can be done in PHP using anonymous functions (since 5.3) [...] Since version 5.3 Php added support for closures and that feature has been used above to create javascript style object literals. The use(&$a) expression makes the variable $a available inside the function happy.
</blockquote>
<p>
Code snippets are included showing how to create these objects via the use of closures and a little trickery with <a href="http://php.net/call_user_func_array">call_user_func_array</a> and __call to make assigning properties easier.
</p>]]></description>
      <pubDate>Wed, 25 Jul 2012 10:44:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Jeff Carouth's Blog: Micro Framework and JavaScript Applications]]></title>
      <guid>http://www.phpdeveloper.org/news/18195</guid>
      <link>http://www.phpdeveloper.org/news/18195</link>
      <description><![CDATA[<p>
<i>Jeff Carouth</i> has <a href="http://carouth.com/blog/2012/07/01/micro-framework-and-javascript-applications/">posted some of his thoughts</a> about the PHP micro-framework and Javascript combination (following a <a href="https://speakerdeck.com/u/jcarouth/p/micro-framework-and-javascript-applications">recent presentation</a> on the subject).
</p>
<blockquote>
As I mentioned, I was accepted as a speaker at LoneStarPHP 2012 to give a session on MicroPHP Framework and JavaScript Applications. The session went reasonably well and I received some decent feedback both at the conference and on <a href="http://joind.in/6351">joind.in</a>. I will address a couple issues with the talk to, hopefully, inspire you as I intended with this talk.
</blockquote>
<p>
He talks about some of the things that need fixing about his presentation (like the lack of time to get into the needed depth) and how his talk should "inspire the attendees" to create apps with this powerful combination. His goal was to describe the use of the micro-framework (<a href="http://www.slimframework.com/">Slim</a>) as a RESTful interface into your application, not to make the application inside of it. 
</p>
<p>
He also mentions that maybe making an introduction to the <a href="http://microphp.org/">MicroPHP Manifesto</a> and describing how to use a framework that applies to it in one shot might have been too much.
</p>]]></description>
      <pubDate>Fri, 06 Jul 2012 14:26:48 -0500</pubDate>
    </item>
  </channel>
</rss>
