<?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>Sun, 19 May 2013 15:00:52 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Kevin Schroeder: Would this be a dumb idea for PHP core?]]></title>
      <guid>http://www.phpdeveloper.org/news/19200</guid>
      <link>http://www.phpdeveloper.org/news/19200</link>
      <description><![CDATA[<p>
In <a href="http://www.eschrade.com/page/would-this-be-a-dumb-idea-for-php-core">this new post</a> to his site <i>Kevin Schroeder</i> thinks out loud and wonders if an idea of his is "a dumb idea" to be included into the PHP core - engine state caching.
</p>
<blockquote>
 I was consulting and I would see significant server resources consumed by bootstrapping the apps.  Loading config files, loading dependent classes, setting up dependencies, initializing ACL's, and the list goes on and on. One of the ways to negate the effect would be to cache a bootstrap object and then pull that object from the cache at the start of the request.  However, the problem is that unserialization can actually end up taking more time than the bootstrap process itself.
</blockquote>
<p>
He wonders if, after the initial bootstrapping happened, a method could be called (his example is "init_engine_state") that would cache the Zend Engine's current state and pass that to a callback function. This would cache everything - objects, variables, classes, etc - all pre-interpreted into memory and make them easy to reuse on future executions. What do you think? <a href="http://www.eschrade.com/page/would-this-be-a-dumb-idea-for-php-core">Share your thoughts</a> in the comments of the post.
</p>]]></description>
      <pubDate>Tue, 19 Feb 2013 09:26:55 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[ScreenFony.com: Work with bootstrap, assetic and less]]></title>
      <guid>http://www.phpdeveloper.org/news/18516</guid>
      <link>http://www.phpdeveloper.org/news/18516</link>
      <description><![CDATA[<p>
On the ScreenFony.com site there's a quick tutorial showing you how to <a href="http://www.screenfony.com/blog/howto-symfony-bootstrap-assetic-less">get started with Symfony2+Twitter Bootstrap+Assetic+LESS</a> in a basic application. <a href="https://github.com/kriswallsmith/assetic">Assetic</a> is a library that helps with asset management and use and <a href="http://lesscss.org/">LESS</a> is a CSS pre-processor that makes it simpler to work with your site's CSS.
</p>
<blockquote>
Bootstrap is a well known and powerful front-end framework for fast prototyping, it uses LESS and it can be easily integrate in your Symfony applications with the help of assetic. In this post I'll show how to: Install bootstrap in you Symfony application, load it using assetic, and compile bootstrap LESS files with lessphp.
</blockquote>
<p>
Using Composer, creating a new Symfony2 project is just a single command away. The just update the "composer.json" and run the install to get the other needed libraries (LESS and the Twitter Bootstrap). They help you set up some Assetic filters for LESS and provide a simple page to output the Bootstrap in your header.
</p>]]></description>
      <pubDate>Tue, 25 Sep 2012 10:36:20 -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[Matt Cockayne: Bootstrapping ZF2 Forms]]></title>
      <guid>http://www.phpdeveloper.org/news/18260</guid>
      <link>http://www.phpdeveloper.org/news/18260</link>
      <description><![CDATA[<p>
In <a href="http://devincharge.com/bootstrapping-zf2-forms/">this recent post</a> to his site, <i>Matt Cockayne</i> shows you how to bootstrap your forms in a Zend Framework 2 application (as defined in a class).
</p>
<blockquote>
A brand spanking new Forms component has been rolled out with <a href="https://github.com/zendframework/zf2">ZF2</a>. The long and the short of this new component meant that I had the opportunity to hand roll a new way of making my forms work with <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap</a>. So, a little tinkering, a quick <a href="https://github.com/zendframework/zf2/pull/1893">pull request</a> to <a href="https://github.com/zendframework/zf2">ZF2</a> to allow the definition of arbitrary options and I <a href="https://github.com/zucchi/Zucchi/tree/master/src/Zucchi/Form/View/Helper">came up with some useful View Helpers</a> that can be dropped into a project and used.
</blockquote>
<p>
He includes the code for the sample class ("MyForm") and highlights the "bootstrap" portions of each element's configuration and walks you through some other handy features of his helpers: auto-rendering forms, a "row" helper and a "collection" helper to help organize the form structure.
</p>]]></description>
      <pubDate>Mon, 23 Jul 2012 11:07:00 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[VG Tech Blog: Lazy Loading Resources with Zend Framework Bootstrap]]></title>
      <guid>http://www.phpdeveloper.org/news/18037</guid>
      <link>http://www.phpdeveloper.org/news/18037</link>
      <description><![CDATA[<p>
On the VG Tech blog today <i>Andr&eacute; Roaldseth</i> has a new post showing how to <a href="http://tech.vg.no/2012/06/01/lazy-loading-resources-with-zend-framework-bootstrap/">lazy load in the Zend Framework bootstrap</a> using two handy methods you can drop into your applications initialization.
</p>
<blockquote>
The Bootstrapping process in Zend Framework isn't perfect. You'll often end up bootstrapping a lot of resources that you don't need to complete the request. Depending on the resources this can be really expensive and hurt your overall performance. The worst kind are resources that open connections to external services [...], even worse, if the services are down they will end up blocking the execution. 
</blockquote>
<p>
Using his modified "getResource" and "lazyload" methods, he shows you how to modify your resource requests to put them in a temporary state that is only initialized when the resource is needed. You can find the code for this example <a href="https://gist.github.com/2843053">in this gist</a>.
</p>]]></description>
      <pubDate>Fri, 01 Jun 2012 14:48:23 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[ServerGrove Blog: Error "Cannot find module 'less'" with Symfony2, Assetic and Twitter Bootstrap]]></title>
      <guid>http://www.phpdeveloper.org/news/17692</guid>
      <link>http://www.phpdeveloper.org/news/17692</link>
      <description><![CDATA[<p>
On the ServerGrove blog, there's <a href="http://blog.servergrove.com/2012/03/16/error-cannot-find-module-less-with-symfony2-assetic-and-twitter-bootstrap/">a quick post</a> with a handy tip for the Symfony2 + Assetic users out there - how to get it to recognize the "less" module.
</p>
<blockquote>
Unfortunately the <a href="http://symfony.com/doc/current/cookbook/assetic/asset_management.html">Symfony documentation</a> does not provide any details on how to configure Assetic to use LESS. There is <a href="http://www.dobervich.com/2011/05/10/less-css-assetic-configuration-in-a-symfony2-project/">a blog post by Dustin Dobervich</a> that gives some pointers, but after following the instructions, Assetic issued the following error: Cannot find module 'less'. We searched around without much success. After several tries, we nailed the configuration.
</blockquote>
<p>
It's an easy two-step process: first you be sure you have "npm" (the package manager) installed on your system, then you modify your Symfony app.yml file to point to the Node modules path.
</p>]]></description>
      <pubDate>Mon, 19 Mar 2012 12:36:25 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Pascal Opitz's Blog: An example of how to use Pimple DI with ZF 1.x]]></title>
      <guid>http://www.phpdeveloper.org/news/17682</guid>
      <link>http://www.phpdeveloper.org/news/17682</link>
      <description><![CDATA[<p>
<i>Pascal Opitz</i> has a really quick post to his blog showing a snippet of code about <a href="http://blog.pascalopitz.com/post/An-example-of-how-to-use-Pimple-DI-with-ZF-1-x">using Pimple with the Zend Framework 1</a>.
</p>
<blockquote>
After having had a look at Silex, and struggling with the somewhat cumbersome ini configurations and YADIF, I wanted to try out whether I could use Pimple as DI container for ZF 1.x Turns out I can, as you can just select Pimple to be the bootstrap container.
</blockquote>
<p>
Hsi example (<a href="https://gist.github.com/2043711">gist of the code here</a>) also shows how to subclass the container and add in some default settings objects into the container. <a href="https://github.com/fabpot/Pimple">Pimple</a> is a small, lightweight dependency injection container from <i>Fabien Potencier</i> of the Symfony framework.
</p>]]></description>
      <pubDate>Fri, 16 Mar 2012 08:30:37 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Rob Allen's Blog: Module specific bootstrapping in ZF2]]></title>
      <guid>http://www.phpdeveloper.org/news/17646</guid>
      <link>http://www.phpdeveloper.org/news/17646</link>
      <description><![CDATA[<p>
<i>Rob Allen</i> has a new post to his blog today looking at <a href="http://akrabat.com/zend-framework-2/module-specific-bootstrapping-in-zf2/">bootstrapping specific modules</a> in a Zend Framework 2-based application without having to do the entire set.
</p>
<blockquote>
Following on from the <a href="http://akrabat.com/zend-framework-2/modules-in-zf2/">discussion on modules</a>, we can hook into the event system to do module specific bootstrapping. By this, I mean, if you have some code that you want to run only if the action to be called is within this module, you can hook into the Application's dispatch event to achieve this.
</blockquote>
<p>
He starts with an example of a basic module (Simple/Module.php) and shows how to define an "onBootstrap" method that calls the "onDispatch" method (when hooked to the event manager) to do some module-specific bootstrap operations. The RouteMatch feature is used to ensure that you're in the right controller/namespace combo to use the module.
</p>]]></description>
      <pubDate>Thu, 08 Mar 2012 10:04:20 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Bertrand Mansion's Blog: Twitter Bootstrap and the QuickForm2 Callback Renderer]]></title>
      <guid>http://www.phpdeveloper.org/news/16908</guid>
      <link>http://www.phpdeveloper.org/news/16908</link>
      <description><![CDATA[<p>
In a new post <i>Bertrand Mansion</i> shows <a href="http://mansion.im/2011/twitter-bootstrap-and-the-quickform2-callback-renderer/">how he combined</a> the versatility of the PEAR <a href="http://pear.php.net/package/HTML_QuickForm2">QuickForm2</a> package and the <a href="http://twitter.github.com/bootstrap/">Bootstrap project</a> from Twitter to quickly make a form using the project's styling (CSS).
</p>
<blockquote>
I don't know about you, but for me building HTML Forms and styling HTML Forms are maybe the most boring things in web development. It's repetitive and takes a lot of time to do things correctly. That's why tools like Twitter's Bootstrap and PEAR's HTML_QuickForm2 can help with this part of our job. Wouldn't it be nice to have QuickForm2 generate a markup compatible with Bootstrap CSS, so that you could get a nice looking form without to much efforts? Well, that's what I plan to do here.
</blockquote>
<p>
He starts by creating a simple QuickForm2 form with no renderers attached (no pre-defined styles) and a custom render callback that wraps the items in "div" tags with the correct styles. There's also a custom renderer included for grouping items with additional styling attached.
</p>]]></description>
      <pubDate>Mon, 26 Sep 2011 12:23:41 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Steve Francia's Blog: Getting Started with Symfony2]]></title>
      <guid>http://www.phpdeveloper.org/news/16033</guid>
      <link>http://www.phpdeveloper.org/news/16033</link>
      <description><![CDATA[<p>
<i>Steve Francia</i> has posted a follow-up to his "<a href="http://phpdeveloper.org/news/15852">On Symfony2</a>" post to his blog today with <a href="http://spf13.com/post/getting-started-with-symfony2">an introduction to the framework</a> that helps you get everything installed you'll need.
</p>
<blockquote>
In a follow up to my popular post <a href="http://spf13.com/post/symfony2">on Symfony2</a>, the open source PHP framework we use at <a href="http://shopopensky.com/">OpenSky</a>, I'm providing an easy guide to getting started using <a href="http://symfony.com/">Symfony2</a>. This isn't your basic "Hello World", but a practical guide to beginning a project with Symfony2.
</blockquote>
<p>
He walks you through bootstrapping a sample application, applying a fix those on OSX might need and creating the application using the symfony command line tool to build everything you'll need.
</p>]]></description>
      <pubDate>Fri, 11 Mar 2011 11:03:08 -0600</pubDate>
    </item>
  </channel>
</rss>
