News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevShed:
Creating a MySQL Abstraction Layer with Bridge Classes in PHP 5
January 17, 2007 @ 11:03:00

DevShed ends another of a series of articles looking at one of the many design patterns out there (specifically the Bridge pattern) with this last tutorial - "Creating a MySQL Abstraction Layer with Bridge Classes in PHP 5".

The question that comes up now is the following: is there anything else that can be said about the bridge pattern? Of course there is! In this final tutorial I'm going to show you how to create a highly expandable abstraction layer that will allow you to work with MySQL using different libraries. This sounds interesting, right?

They start with the abstraction layer itself, creating a simple group of methods to work with a MySQL database. On top of that they create the bridge class that the resulting application can use to seamlessly use either mysql or mysqli without much code change. Finally, they bring it together in a simple application that grabs user information from a database table.

0 comments voice your opinion now!
bridge design pattern mysql abstraction layer php5 tutorial bridge design pattern mysql abstraction layer php5 tutorial


blog comments powered by Disqus

Similar Posts

HowTo Forge: Installing And Working With Xoops Under Ubuntu 6.10

Pierre-Alain Joye's Blog: ext/filter, API frozen (!) and fixes, 0.11.0 is out

Dagfinn Reiersol's Blog: Real programming with PHP 5.3 (part 3): Links

Gergely Hodicska's Blog: What is new in PHP 5.3 - part 2: late static binding

onPHP5.com: Clickable, Obfuscated Email Addresses


Community Events





Don't see your event here?
Let us know!


language version series composer tool voicesoftheelephpant framework conference podcast artisanfiles security list laravel release library opinion community introduction interview symfony

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework