<?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, 25 May 2013 06:16:25 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[NetTuts.com: Building Ribbit in PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18992</guid>
      <link>http://www.phpdeveloper.org/news/18992</link>
      <description><![CDATA[<p>
In the <a href="http://net.tutsplus.com/tutorials/html-css-techniques/build-a-twitter-clone-from-scratch-the-design/">first part</a> of a new series on NetTuts.com, they started on the creation of a full web application (a Twitter clone). The first article covered the CSS and using LESS to create an interface. In <a href="http://net.tutsplus.com/tutorials/php/building-ribbit-in-php/">this second post</a> they get into the PHP backend, opting to create it without a framework on the first shot.
</p>
<blockquote>
In the <a href="http://net.tutsplus.com/tutorials/html-css-techniques/build-a-twitter-clone-from-scratch-the-design/">initial entry</a> in this series, we took care of the UI-aspect of our Twitter-clone, called Ribbit. Now, we'll begin coding the application in a number of languages. This lesson will leverage standard PHP (with homegrown MVC), but, in future articles, we'll review other implementations, such as with Rails or Laravel.
</blockquote>
<p>
They provide all the code you'll need, the database table structure to power it (MySQL) and the examples of a model, router and basic MVC stack to handle the requests. They help you make a user creation and login system as well as a few other pages ("buddies", "make a post" and a few others). You can also <a href="https://github.com/NETTUTS/Ribbit-PHP">download the source</a> from their Github account if you want it all in one shot.
</p>]]></description>
      <pubDate>Fri, 04 Jan 2013 10:22:48 -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[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[Ibuildings techPortal: lessphp: PHP implementation of Less CSS]]></title>
      <guid>http://www.phpdeveloper.org/news/15595</guid>
      <link>http://www.phpdeveloper.org/news/15595</link>
      <description><![CDATA[<p>
On the Ibuildings techPortal today there's a new tutorial from <i>Robert Raszczynski</i> with <a href="http://techportal.ibuildings.com/2010/12/17/lessphp-php-implementation-of-less-css/">his look at</a> the <a href="http://leafo.net/lessphp/docs/">lessphp</a> project - a native PHP implementation of the LESS CSS framework.
</p>
<blockquote>
In a nutshell, Less CSS is a tool that lets you simplify your CSS style sheet and allows you to extend limited CSS functionality by introducing variables, mixins, operations and nested rules. The original implementation is written in Ruby; however, there is a PHP solution based on LESS CSS called lessphp. 
</blockquote>
<p>
He mentions the good and the bad about using LESS - it can speed up your CSS development time by making it more familiar but it also comes with the caveat that the CSS files have to be generated each time an update is made. He covers some of the basic features of lessphp including variables, mixins, nested rules, operations (improving on already defined rules) and being able to use multiple .less files. He includes a XML snippet that can be dropped into your Ant (or Phing) build to run the generation at deployment time.
</p>]]></description>
      <pubDate>Fri, 17 Dec 2010 09:49:54 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[NETTUTS.com: How to Squeeze the Most out of LESS]]></title>
      <guid>http://www.phpdeveloper.org/news/15355</guid>
      <link>http://www.phpdeveloper.org/news/15355</link>
      <description><![CDATA[<p>
On the NETTUTS.com site today there's a new tutorial about using the <a href="http://lesscss.org/">LESS</a> CSS tool to get the most out of the styling of your website. <a href="http://net.tutsplus.com/tutorials/php/how-to-squeeze-the-most-out-of-less/">The tutorial</a> uses the PHP implementation <a href="http://leafo.net/lessphp/">by Leaf Corcoran</a> to accomplish the same things as the Ruby library offers.
</p>
<blockquote>
During a sick day a few weeks ago, I got around to something I've been meaning to look at for about a year: <a href="http://lesscss.org/">LESS</a>. If anything web technology is worth a look, I promise LESS is. In this article, we'll look at the amazing power of <a href="http://lesscss.org/">LESS</a> and its ability to streamline and improve your development process. We'll cover rapid prototyping, building a lightweight grid system, and using CSS3 with LESS.
</blockquote>
<p>
They use an output buffering trick to handle parsing and executing the ".less" CSS-based files through <a href="http://leafo.net/lessphp/">the library</a> and spit the parsed version back out the other side. There's plenty of examples of how to use the LESS syntax ending up in their previously mentioned grid system using mixins, some cross-browser CSS3 and the <a href="http://css3pie.com/">CSS3 Pie</a> tool. 
</p>]]></description>
      <pubDate>Fri, 29 Oct 2010 10:18:50 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[php|architect Blog: Less Code isn't Always Better ]]></title>
      <guid>http://www.phpdeveloper.org/news/14452</guid>
      <link>http://www.phpdeveloper.org/news/14452</link>
      <description><![CDATA[<p>
On the php|architect blog <i>Keith Casey</i> has a new post that suggests something a bit counterintuitive to what a lot of developers think about their code - <a href="http://www.phparch.com/2010/04/29/less-code-isnt-always-better">less code isn't always better</a>.
</p>
<blockquote>
Everyone says "I could build that in an afternoon/weekend/marathon session of caffeine-fueled code-debauchery" but to actually do something well, unsurprisingly, it usually takes longer.
</blockquote>
<p>
He gives an example of <a href="http://www.nerdparadise.com/blogs/blake/6034/">this forum script</a> that's under 1KB of code (949 bytes or so) and has some of the basic features of any forum software out there. <i>Keith</i> talks about the software - the features included, the included security, how it uses quotes to its advantage and how it only uses the basic functionality of PHP to make it all work. 
</p>
<p>
<i>Keith</i> also includes a few criticisms of the code like how it uses short tags, the lack of linebreaks, using $_REQUEST and a few more.
</p>
<blockquote>
To be blunt, it's not pretty and doesn't have many features, but honestly, I fluctuate between terrified and impressed by the feat. [...] More than anything, it's refreshing and fascinating to see what someone can do when they set clear, simple, direct priorities and focus exclusively on those.
</blockquote>]]></description>
      <pubDate>Mon, 03 May 2010 13:16:59 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Brendon's Blog: 10 PHP functions you (probably) never use]]></title>
      <guid>http://www.phpdeveloper.org/news/13851</guid>
      <link>http://www.phpdeveloper.org/news/13851</link>
      <description><![CDATA[<p>
New from his blog <i>Brendon</i> has a list of what he thinks are <a href="http://infinity-infinity.com/2009/07/10-php-functions-you-probably-never-use/">ten PHP functions you'll never use</a>.
</p>
<blockquote>
When scripting in PHP, we often restrict ourselves to a limited number of API functions: the common ones, like print(), header(), define(), isset(), htmlspecialchars(), etc. [...] The PHP API actually offers a lot of functionality, some useless and some useful; often seldom used. I have been looking through the available functions and was interested to find some really cool functions that I should have known about.
</blockquote>
<p>
Here's his list of functions, some of which are more on the "special needs" list than the "never use" list:
</p>
<ul>
<li><a href="http://php.net/sys_getloadavg">sys_getloadavg</a>
<li><a href="http://php.net/pack">pack</a>
<li><a href="http://php.net/cal_days_in_month">cal_days_in_month</a>
<li><a href="http://php.net/gettext">_()</a>
<li><a href="http://php.net/get_browser">get_browser</a>
<li><a href="http://php.net/debug_print_backtrace">debug_print_backtrace</a>
<li><a href="http://php.net/metaphone">metaphone</a>
<li><a href="http://php.net/natsort">natsort</a>
<li><a href="http://php.net/levenshtein">levenshtein</a>
<li><a href="http://php.net/glob">glob</a>
</ul>]]></description>
      <pubDate>Fri, 15 Jan 2010 11:27:57 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Alex Netkachov's Blog: 6 PHP coding tips to write less code]]></title>
      <guid>http://www.phpdeveloper.org/news/8967</guid>
      <link>http://www.phpdeveloper.org/news/8967</link>
      <description><![CDATA[<p>
<i>Alex Netkachov</i> has <a href="http://www.alexatnet.com/node/100">shared six tips</a> in a new post on his blog today for how you can write less PHP code and get more done with it. It's based around <a href="http://www.phpdeveloper.org/news/8961">another post</a> from <i>Arnold Daniels</i> talking about a temporary variable method in PHP.
</p>
<blockquote>
This tip is useful to "lazy" developers who do not even think about variable names. They may prefer magic names like ${0} and 0 is good enough variable name, why not...
</blockquote>
<p>
His <a href="http://www.alexatnet.com/node/100">list</a> consists of:
</p>
<ul>
<li>Use || (or) and && (and) operations instead of if.
<li>Use ternary operator.
<li>Use for instead of while.
<li>In some cases PHP requires you to create a variable. [...] To handle all these situation you can create a set of small functions which shortcuts frequently used operations.
<li>Explore the language you use.
<li>When it is better to write more and then read the code easily, do not be lazy.
</ul>
<p>
Check out <a href="http://www.phpcult.com/blog/02/less-code-vs-good-code/">Vidyut Luther's response</a> to <i>Alex</i>'s comments as well as one from <a href="http://www.phpguru.org/#154">Richard Heyes</a>.
</p>]]></description>
      <pubDate>Mon, 05 Nov 2007 07:58:00 -0600</pubDate>
    </item>
    <item>
      <title><![CDATA[Kore Nordmann's Blog: Image_3D Performance]]></title>
      <guid>http://www.phpdeveloper.org/news/5362</guid>
      <link>http://www.phpdeveloper.org/news/5362</link>
      <description><![CDATA[<p>
<i>Kore Nordmann</i> has made <a href="http://kore-nordmann.de/home/blog/php/image_3d_performance">a post</a> on his blog with more details on the Image_3D package and some of the rendering times he noticed (and the improvements) with the <a href="http://www.zend.com/de/products/zend_guard">Zend Guard</a> product.
</p>
<quote>
<i>
The <a href="http://www.zend.com/de/products/zend_guard">ZendGuard</a> offers optimization and encoding for your PHP code. I visited a friend who ownes a license of ZendGuard so that we had the idea to test it with something CPU intesinve like <a href="http://pear.php.net/package/Image_3D">Image_3D</a>. The results were quiet surprising.
</i>
</quote>
<p>
According to <a href="http://kore-nordmann.de/home/blog/php/image_3d_performance">his results</a>, the Zend Guard optimizer actually dropped the effectiveness and speed of rendering an image with his package - up to a 30% drop!
</p>]]></description>
      <pubDate>Sat, 13 May 2006 06:22:27 -0500</pubDate>
    </item>
    <item>
      <title><![CDATA[Professional PHP Blog: Podcast interview with Andi Gutmans]]></title>
      <guid>http://www.phpdeveloper.org/news/4762</guid>
      <link>http://www.phpdeveloper.org/news/4762</link>
      <description><![CDATA[Professional PHP has <a href="http://www.procata.com/blog/archives/2006/01/30/podcast-interview-with-andi-gutmans/">thie opinions</a> posted today about the <a href="http://podcast.phparch.com/main/index.php/episodes:20060127">latest show</a> from the Pro-PHP Podcast - the interview with <i>Andi Gutmans</i>.
<p>
<quote>
<i>
I enjoyed Friday's <a href="http://podcast.phparch.com/main/index.php/episodes:20060127">pro::PHP podcast</a> interview with Andi Gutmans. With a name like pro::PHP how can I not like it? This was a less formal presentation than the <a href="http://www.procata.com/blog/archives/2005/12/05/zend-framework-webcast/">Zend Framework webcast</a>. Perhaps surprisingly informal for Andi, at least at the end. I thought Marcus Whitney did a great job selecting and asking questions. There were some technical difficulties in the live version. I hope those are worked out for the next broadcast, which I am looking forward to.
<p>
Now, the question is early February, or late February? 
</i>
</quote>
<p>
If you're confused about that last question, check out <a href="http://www.phpdeveloper.org/news/4760">this post</a> for the scoop. (According to a comment made by <i>Andi</i>, though, they're shooting for "mid-February")...]]></description>
      <pubDate>Tue, 31 Jan 2006 06:45:16 -0600</pubDate>
    </item>
  </channel>
</rss>
