<?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, 22 May 2012 13:03:59 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[Lee Davis' Blog: Zend Paginator Example]]></title>
      <guid>http://www.phpdeveloper.org/news/17840</guid>
      <link>http://www.phpdeveloper.org/news/17840</link>
      <description><![CDATA[<p>
In a recent post to his blog <i>Lee Davis</i> gives an example of <a href="http://www.duckheads.co.uk/zend-paginator-example/">using the Zend Framework's pagination functionality</a>, complete with some CSS to style it a bit better than the defaults.
</p>
<blockquote>
One of the reasons why zend framework has been so popular is due to all the hard work put in to make sure components are extremely configurable. Sure there are default behaviours, but nothing is assumed and anything that needs to be overwritten or reconfigured can be. A strong emphasis on configuration over convention means you'll never be lumbered with code that just can't be changed. <a href="http://framework.zend.com/manual/en/zend.paginator.usage.html">Zend Paginator</a> is one of the smaller components of Zend Framework that allows you to get a simple
paginator up and running on your listings or search pages in a matter of minutes. 
</blockquote>
<p>
Included in the post is a cut-and-pasteable view that creates the Previous/Next links as well as including the first/last page numbers and a few around the current page.
</p>]]></description>
      <pubDate>Thu, 19 Apr 2012 10:31:29 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[PHPMaster.com: Automatic CSS3 Prefixer and Compressor]]></title>
      <guid>http://www.phpdeveloper.org/news/17700</guid>
      <link>http://www.phpdeveloper.org/news/17700</link>
      <description><![CDATA[<p>
On PHPMaster.com today there's a new tutorial showing how to use a little PHP magic to <a href="http://phpmaster.com/automatic-css3-prefixer-and-compressor/">compress your CSS</a> automatically.
</p>
<blockquote>
There are many ways to compress CSS files or automatically generate browser-specific CSS3 prefixes, but usually extra tools are used which is very annoying. I'd like to show you how such tasks can be done using only PHP. 
</blockquote>
<p>
Complete code for this small script is included in <a href="http://phpmaster.com/automatic-css3-prefixer-and-compressor/">the article</a>. It uses some regular expressions to parse the CSS and does some replacement and removal of things from the CSS content to slim it down and format it all as one line. There are <a href="http://cdn.phpmaster.com/files/2012/03/css-regex1.png">some</a> <a href="http://cdn.phpmaster.com/files/2012/03/css-regex2.png">images</a> <a href="http://cdn.phpmaster.com/files/2012/03/css-regex3.png">illustrating</a> the <a href="http://cdn.phpmaster.com/files/2012/03/css-regex4.png">process</a> also included.
</p>]]></description>
      <pubDate>Tue, 20 Mar 2012 12:38:30 -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[Smashing Magazine: Create A Christmas Wish List With PHP (For Beginners)]]></title>
      <guid>http://www.phpdeveloper.org/news/17298</guid>
      <link>http://www.phpdeveloper.org/news/17298</link>
      <description><![CDATA[<p>
In <a href="http://coding.smashingmagazine.com/2011/12/22/create-a-christmas-wish-list-with-php/">this new tutorial</a> Smashing Magazine shows you how to create a mini "Christmas List" application with PHP, HTML and CSS (and a little bit of database help) to display a list of what you or your family wants this holiday.
</p>
<blockquote>
'Tis the season to be jolly, and how much jollier could we make it than with a helpful Christmas wish list crafted for your family to ensure that you get maximum presentage this holiday? In this article, we will focus on creating a very simple system that allows you to add gift ideas to a Web page, and for your family (or whoever) to view the list.
</blockquote>
<p>
They walk you through the setup of the basic PHP file structure, the HTML template for the list output, CSS to make it look nice and the actual PHP backend - working with a MySQL database to pull out product information and use a simple login method.
</p>]]></description>
      <pubDate>Fri, 23 Dec 2011 10:23:51 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[CodeForest.net: Obfuscate your e-mail address with PHP, JavaScript and CSS]]></title>
      <guid>http://www.phpdeveloper.org/news/17046</guid>
      <link>http://www.phpdeveloper.org/news/17046</link>
      <description><![CDATA[<p>
A new post on CodeForest.net today gives you a technique for <a href="http://www.codeforest.net/obfuscate-your-email-address-with-php-javascript-and-css">obfuscating email addresses</a> with a combination of PHP, CSS and Javascript. It uses ROT13 for the obfuscation and some tricky CSS to keep it usable for the human visitors.
</p>
<blockquote>
According to <a href="http://en.wikipedia.org/wiki/E-mail_spam#Statistics_and_estimates">Wikipedia</a>, more than 97% of all e-mails sent over the net are unwanted. That's around 200 billion spam messages per day. To keep this insane amount of spam out of your inbox, you should keep your e-mail safe when you display it on web. One of the ways to keep it safe is to obfuscate it. In this tutorial I'll show you how to create a script that will do just that.
</blockquote>
<p>
<a href="http://www.codeforest.net/demo/obfuscateEmailAddress.rar">The script</a> converts the email address into a <a href="http://en.wikipedia.org/wiki/ROT13">ROT13 obfuscated</a> versions and reverse it. The spam bots harvesting addresses won't see it as a valid format but the user, thanks to some CSS rules, will see it and be able to copy it easily. Each part of the script is explained in <a href="http://www.codeforest.net/obfuscate-your-email-address-with-php-javascript-and-css">the post</a> and you can see a <a href="http://www.codeforest.net/demo/obfuscateEmailAddress/demo.php">demo of it in action here</a>.
</p>]]></description>
      <pubDate>Wed, 26 Oct 2011 12:39:01 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Script-Tutorials.com: Creating Your Own Commenting System from Scratch]]></title>
      <guid>http://www.phpdeveloper.org/news/17000</guid>
      <link>http://www.phpdeveloper.org/news/17000</link>
      <description><![CDATA[<p>
Script-Tutorials.com has a new article posted today showing you how to combine PHP, some CSS, a dash of SQL and some HTML (oh, and jQuery) to create <a href="http://www.script-tutorials.com/how-to-create-own-commenting-system/">your own commenting system</a> from scratch that could be used anywhere from a simple blog to a more complex social site.
</p>
<blockquote>
Today I prepared new interesting article - I will tell how you can create own commenting system (AJAX) for your items (any units at your website) with PHP. For our demonstration - I prepared two SQL tables: first table will keep records of our items. It contain several fields: title, description, time of adding and comments count. Another table will keep records of comments. We will use jQuery too (for better interface behavior). One of features will spam protection (we can post no more than one comment every 10 minutes)!
</blockquote>
<p>
<a href="http://www.script-tutorials.com/how-to-create-own-commenting-system/">The tutorial</a> includes all of the code, markup and styling you'll need to make the system work. If you'd like to get right into the code you can <a href="http://www.script-tutorials.com/demos/163/source.zip">download it as a package</a> or you can <a href="http://www.script-tutorials.com/demos/163/index.php">try out their demo</a>.
</p>]]></description>
      <pubDate>Mon, 17 Oct 2011 11:30:02 -0500</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[Superdit.com: Google Web Seach With ExtJS Grid and PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/16695</guid>
      <link>http://www.phpdeveloper.org/news/16695</link>
      <description><![CDATA[<p>
From Superdit.com there's a tutorial showing you how to <a href="http://superdit.com/2011/01/24/google-web-seach-with-extjs-grid-and-php/">display search results in an ExtJS grid</a> as pulled from Google's API. The article's from the beginning of the year, but it's a good self-contained example of using <a href="http://www.sencha.com/products/extjs/">ExtJS</a> to automatically pull in data produced from the backend.
</p>
<blockquote>
This time I want to make a simple example in displaying google web search result in ExtJS grid, other ExtJS component that can be used to displaying this result is dataview, but grid is more common in displaying data in ExtJS.
</blockquote>
<p>
The code (downloadable <a href="http://www.box.net/shared/iyf2x8or8h">here</a>) is pretty simple and the full CSS, Javascript, PHP and markup you'll need are included. The PHP pulls the results from the Google API and </p> JSON encodes them for loading into the ExtJS grid. You can see the <a href="http://superdit.com/wp-content/uploads/2011/01/screenshot.png">end result here</a> or <a href="http://demo.superdit.com/ext_php_google/">try out a demo</a>.
]]></description>
      <pubDate>Tue, 09 Aug 2011 12:45:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[DZone.com: Assetic: JavaScript and CSS files management]]></title>
      <guid>http://www.phpdeveloper.org/news/16679</guid>
      <link>http://www.phpdeveloper.org/news/16679</link>
      <description><![CDATA[<p>
On DZone.com today <i>Giorgio Sironi</i> <a href="http://css.dzone.com/articles/assetic-javascript-and-css">introduces you to Assetic</a>, an asset management tool that helps you keep things organized and easily requested by your application.
</p>
<blockquote>
<a href="https://github.com/kriswallsmith/assetic">Assetic</a> is a PHP library for managing the deployment of your assets: JavaScript, CSS and other resources which will be requested by the browser. The library has been created by <a href="http://kriswallsmith.net/">Kris Wallsmith</a> from OpenSky, an e-shop where many of the active members of the PHP community work, or worked (see <a href="http://jwage.com/">Jonathan Wage</a>/Doctrine 1 and <a href="http://avalanche123.com/">Bulat Shakirzyanov</a>/Imagine.)
</blockquote>
<p>
<i>Giorgio</i> compares it to the more traditional method (putting them in a public folder) and how Assetic gives you an advantage over this setup. The main feature of the tool is to bundle all of your assets into one file that is then sent to the browser and interpreted there reducing the need for HTTP calls to request multiple files. An example is included showing the creation of an asset collection and the output of the files all combined into one string.
</p>]]></description>
      <pubDate>Fri, 05 Aug 2011 09:19:26 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Sander Marechal's Blog: A YuiCompressorFilter for Phing]]></title>
      <guid>http://www.phpdeveloper.org/news/16663</guid>
      <link>http://www.phpdeveloper.org/news/16663</link>
      <description><![CDATA[<p>
<i>Sander Marechal</i> has been working with <a href="http://phing.info">Phing</a> in some of his recent development and has created something useful for compressing Javascript and CSS files on the deployment of your application - <a href="http://www.jejik.com/articles/2011/07/a_yuicompressorfilter_for_phing//">a YuiCompressor task</a>.
</p>
<blockquote>
I am going to write several useful extensions, the first of which is a YuiCompressorFilter. Phing already has support for a JavaScrip minifier in the form of the JsMinTask, but the yui-compressor is more useful. Not only does it usually compress better than JsMin, it can also compress CSS files. Also, because my YuiCompressor extension is implemented as a filter instead of a task you can do fancy things like minifying and concatenating files in a single step.
</blockquote>
<p>
He includes both a sample of the task and it's configuration (the XML) in the post as well as a link to <a href="http://github.com/sandermarechal/phing-ext">its source</a> over on github.
</p>]]></description>
      <pubDate>Tue, 02 Aug 2011 09:16:37 -0500</pubDate>
    </item>
  </channel>
</rss>

