<?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>Fri, 24 May 2013 14:47:07 -0500</pubDate>
    <ttl>30</ttl>
    <item>
      <title><![CDATA[LineshJose.com: How To: Create A Simple CSS Compressor Using PHP]]></title>
      <guid>http://www.phpdeveloper.org/news/18053</guid>
      <link>http://www.phpdeveloper.org/news/18053</link>
      <description><![CDATA[<p>
In <a href="http://tech.lineshjose.com/how-to-create-a-simple-css-compressor-using-php/">this recent post</a> to his blog <i>Linesh Jose</i> shows you how to create a simple PHP-based compressor for your CSS (using some string replacement methods and a regex or two).
</p>
<blockquote>
CSS or Cascading Style Sheets is a language used to describe the presentation of a document written in a markup language. If you're developing a very complex design for your site, CSS scripts become very long, and takes too much time to load. But a compressed CSS script can help your website load faster and easily maintain its functionality. Here, I've created a very simple CSS compressor using PHP to compress or reduce CSS script size.
</blockquote>
<p>
You can read through the example code and see how it all works or you can <a href="http://files.lineshjose.com/files/get/u8qkQWsAJs/css-compressor.zip">download the code</a> and <a href="http://demo.lineshjose.com/php/css_compressor/">see a live demo</a> of it in action. His script does the compression on the fly, but it's not a far stretch to get it set up as a part of a build to output to a file on deployment.
</p>]]></description>
      <pubDate>Wed, 06 Jun 2012 08:44:26 -0500</pubDate>
    </item>
  </channel>
</rss>
