<?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, 18 May 2013 20:26:04 -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[Codeception Blog: The Locator Class]]></title>
      <guid>http://www.phpdeveloper.org/news/18526</guid>
      <link>http://www.phpdeveloper.org/news/18526</link>
      <description><![CDATA[<p>
The Codeception blog (a BDD testing tool) has a new post on <a href="http://codeception.com/09-24-2012/locator.html">using their Locator class</a> to create more complex tests based on XPath or CSS selectors.
</p>
<blockquote>
In the latest Codeception 1.1.4 new Locator class was introduced. Basically it should simplify your life in writing complex XPath or CSS locators. Right now it has minimal, yet useful functionality.
</blockquote>
<p>
The post shows how to combine more than one item for location with either a tag, CSS-based or XPath-based selector. It also shows how to use the "tabindex" method to simulate the movement through a page using the "Tab" key. Finally, there's a quick piece of code showing how to locate an item based on the "href" value. For more information on using Codeception, check out <a href="http://codeception.com/doc">their documentation</a> or the project's <a href="http://codeception.com">main site</a>.
</p>]]></description>
      <pubDate>Thu, 27 Sep 2012 09:50:34 -0500</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[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>
    <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>
  </channel>
</rss>
