15+ Useful PHP Components, Techniques and Tutorials

May 19, 2013 · 17 comments

by Lars

15+ Useful PHP Components, Techniques and Tutorials

PHP is one of the most popular development languages for building dynamic web applications today. Some of the most influential and popular open source CMS/Publishing platforms like WordPress, Joomla and Drupal all rely on PHP and many others do to. PHP offers many advantages; it is fast, stable, secure, easy to use and open source. Being familiar with PHP and having a good toolbox for working effectively with PHP is essential for most Web Developers because you will run into some PHP code anyone will run into PHP now and then!

In this article I have compiled a list of useful PHP Components, Techniques and Tutorials that any php developer should be aware of and which will make their life easier.


ElegantThemes
ThemeForest

Advertisement

PHP Distributions to GET STARTED FAST

XAMPP

image

Many people know from their own experience that it’s not easy to install an Apache web server and it gets harder if you want to add MySQL, PHP and Perl.

XAMPP is an easy to install Apache distribution containing MySQL, PHP and Perl. XAMPP is really very easy to install and to use – just download, extract and start.

PHP Frameworks

You can find more Frameworks for PHP here.

cakephp

image

CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.

CodeIgniter

image

CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you’re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you’re tired of ponderously large and thoroughly undocumented frameworks

pear.php.net

PEAR is a framework and distribution system for reusable PHP components. It is really useful to know how to use it as it makes it much easier to download and install packages. You can find more information using PEAR packages in the online manual and the FAQ.

image

Symfony

image

Symfony is a full-stack framework, a library of cohesive classes written in PHP.

“It provides an architecture, components and tools for developers to build complex web applications faster. Choosing symfony allows you to release your applications earlier, host and scale them without problem, and maintain them over time with no surprise.”

PHP Chart Solutions

pChart – a PHP class to build charts

image

pChart is a PHP class oriented framework designed to create aliased charts. Most of todays chart libraries have a cost, this project is intended to be free. Data can be retrieved from SQL queries, CSV files, or manually provided. This project is still under development and new features or fix are made every week.

Creating a Bar Graph using CSS and PHP

Richard Clark created this vertical bar graphs with css and php, a must see tutorial.

pure-css-line-graph

Image_Graph

image

Image_Graph (formerly known as GraPHPite) utilizes PHP’s object oriented model to enable users/developers to create highly versatile graphs in a simple way. There are 14 highly customizable chart types including line, bar, area, pie, impulse, dot/scatter, step, candlestick, box & whisker, radar, etc.

The free script requires PHP4 or PHP5 support with GD 2 support for optimal performance and PEAR package, including Image_Color and Image_Canvas package. The site offers over 80 samples of how the tool can be used.

Libchart

image

Libchart is is a simple PHP-library. You can create Line-, Bar- (horizontal and vertical) and Piecharts. The tool requires PHP compiled with GD Graphics Library and FreeType. Libchart is a free software distributed under the terms of the GNU General Public License (GPL).

JpGraph

image

JpGraph is a Object-Oriented Graph creating library for PHP. The library is completely written in PHP and can be used in any PHP scripts. The library can be used to create numerous types of graphs either on-line or written to a file. Line plots, filled line plots, step line plots, bar and pie charts, ring and scatter plots, polar and canvas plots as well as Gantt Charts. The designs of charts aren’t that impressive, but they don’t have to.

PHP Coding Tips and useful Components

Query – PHP & Ajax with the Twitter API

image

This tutorial will show you how you can use jQuery, PHP and a little ajax to connect up to the Twitter API and return results. Focus is unauthenticated calls to the search API but you may also find this article interesting Authenticating Twitter API calls with PHP & jQuery.

Sanitize and Validate Data with PHP Filters

image

Data validation is an integral part of working with forms. Not only can invalid submitted data lead to security problems, but it can also break your webpage. Today, we’ll take a look at how to remove illegal characters and validate data by using the “filter_var” function.

Backup Your Database into an XML File Using PHP

image

Backing up data is extremely important. Most of the time the database is the most important piece of the puzzle. Imagine losing all of the data in your database — it would be tragic.

10 PHP code snippets for working with strings

image

Strings are a very important kind of data, and you have to deal with them daily with web development tasks. In this article, I have compiled 10 extremely useful functions and code snippets to make your php developer life easier.

Caching Dynamic PHP pages easily

image

Solution to cache heavy pages and just serve a static html version using output buffering.

3 ways to compress CSS files using PHP

image

When you’re using a sophisticated design, CSS files can quickly become very long, and takes time to load. I have compiled 3 interresting ways of compressing CSS files by using PHP.

How to Build a Login System for a Simple Website

image

This is a video tutorial where you’ll see how to build a login system with PHP and MYSQL. Many features will be covered; including MySqli, Prepared Statements, jQuery, Classes, Sessions, Cookies, etc.

PHP components: Autosuggest

image

A PHP component ready to use to implement basic autosuggest feature. For all Ajax beginners this is the most simple way to implement it (just with 8Kb) and the only thing you have to do is modify some parameters.

 

{ 12 comments… read them below or add one }

manoj dakondwar December 31, 2012 at 3:49 pm

really it’s nice collection

Reply

abeera November 29, 2012 at 6:57 am

thank you for these great tips and great share

Reply

annesofie November 29, 2012 at 10:02 am

hi your welcome – glad you found the post useful.
Best regards,
Sofie

Reply

Little Geek November 1, 2010 at 12:00 pm

OK! i must say these are really good examples of useful handy php snippets. i have collected some snippets, it might be handy for others too. here is the link : http://www.alittlegeek.com/18-php-snippets-to-boost-your-development-speed/. i am thinking of using some of your snippets as a new post in my blog.

Reply

Lars November 1, 2010 at 6:01 pm

Thanks for the tip, I’ll check the article ASAP.

Reply

Thomas Freewill July 1, 2010 at 11:08 pm

to all php developers who works with ORM frameworks there is very useful tool ORM Designer (http://www.orm-designer.com)

Reply

Rochiyat June 30, 2010 at 3:20 pm

nice…
tutorial is help me to make web.
Tk

Reply

aditia June 12, 2010 at 3:16 am

maybe PDO should be useful too, thanks for sharing the other

Reply

Harsha M V June 11, 2010 at 12:44 am

awesome list.. thanks a lot

Reply

BebopDesigner June 9, 2010 at 8:26 pm

Wow! these are brilliant!

Cheers

Reply

Laira June 9, 2010 at 5:21 pm

Such a very nice and useful work .Thanks a lot….

Reply

Oscar Dias June 9, 2010 at 1:51 am

Great collection! I really liked the chart solutions.
Thanks for sharing.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

{ 5 trackbacks }

Previous post:

Next post:


Web Analytics