want to join us? register, it's easy | help

browse by tag: oop

sort by

newest, oldest, most popular


category icon

Architecture Patterns: Domain Model and Friends

in PHP added by lornajane, on 24/6/2012 advanced tutorials design patterns oo programming oop php php5 techportal

An experienced developer gives us this great article with insight into a collection of patterns we can use to design our systems at a high level. This includes code for the patterns, and practical advice on choosing which is a good fit for your application

comment save report
category icon

PHP5 and OOP

in PHP added by Jordan, on 10/4/2008 Object Oriented Programming oop php5

Object oriented programming was introduced for the first time in PHP 3. But the subjects is extremely actual again in PHP 5, because the entire concept of the OOP(Object Oriented Programming) was in fact redesigned from scratch for the new version of the language (PHP 5). Hence, this tutorial would be interesting for the advanced user familiar with PHP 4 and as well for the beginners, since we will try to use more "understandable" words and examples comprehensive enough to express the real power of the object oriented programming.

comment save report
category icon

The Practicality of OO PHP

in PHP added by goodphptutorials, on 18/10/2006 design object oo programming oop php

There seems to be a common pitfall among some PHP developers--especially those just beginning PHP programming--and that is their lack of object-oriented (OO) PHP use. This article's purpose is to inform developers about the practicality of OO PHP; fully understanding the benefits of using OO PHP should be a requirement in the PHP learning process.

comment save report
category icon

PHP5 Database Iterators

in PHP added by goodphptutorials, on 29/9/2009 database interator oop php5

One feature of PHP rarely seen in production code is PHP Iterators. Iterators are not unique to PHP, as Java and C++ have them, but they are a powerful mechanism to increase code usability. A very useful feature of PHP Iterators is the ability to extend them to iterate over any type of array or object. A unique implementation of PHP Iterators is to quickly and easily iterate over a result from a SQL query against a database. This provides a fast and very memory efficient implementation for loading up many objects.

comment save report
category icon

Why PHP 5 Rocks!

in PHP added by goodphptutorials, on 22/12/2005 object orientation oo programming oop php5

The title really says it all!

comment save report
category icon

The MVC pattern

in PHP added by goodphptutorials, on 14/1/2006 controller mvc n-tier oo programming oop pattern view

The MVC pattern very commonly used in constructing web applications. The principle allows us to construct 3-tier applications, allowing us useful layers of seperation in our code, and helping both designers and developers to cooperate as well enhancing our ability to maintain and expand on existing applications.

comment save report
category icon

Object Oriented Programming in PHP: The Way to Large PHP Projects

in PHP added by goodphptutorials, on 12/12/2005 beginner introduction objects oo programming oop

This arcticle introduces Object Oriented Programming (OOP) in PHP. I will show you how to code less and better by using some OOP concepts and PHP tricks. Good luck!

comment save report
category icon

Implementing MVC in PHP: The Controller

in PHP added by goodphptutorials, on 5/2/2006 controller mvc oo programming oop patterns

Quite simply, the controller handles incoming requests. It uses input, in this case from the URI, to load a module and refresh/render the presentation layer. The controller for the aptly named Framework 1.0 uses a few GET arguments to figure out which module to load.

comment save report
category icon

Using Objects to Create an Application

in PHP added by goodphptutorials, on 16/1/2006 class design objects oo programming oop software design

This tutorial is the second in a series dealing with using objects to create an application -- building the application up from smaller parts -- and teaching important software engineering and design concepts that will be useful writing not only in PHP, but in other languages as well.

comment save report
category icon

The Singleton Pattern with PHP

in PHP added by goodphptutorials, on 3/12/2007 advanced tutorials oop pattern

The Singleton Pattern is often mistakenly referred to as the OOP nuts "Global variable".
Classes that utilise the Singleton Pattern aims to have a single instance throughout the lifetime of the request/process.

comment save report
category icon

Cake Tutorial: Building A Simple Blog - Part 1

in PHP added by goodphptutorials, on 4/9/2006 cake cakephp content management framework oop

This tutorial introduces CakePHP, by walking you through setting up a simple blog and, later, adding advanced blogging features. You will learn how to make Cake map data from database records into data structures which you can present in your application.

comment save report
category icon

How to Use PHP Namespaces, Part 1 The Basics

in PHP added by goodphptutorials, on 15/7/2009 namespace oop php5

Namespaces are one of the most significant changes in PHP 5.3. They will be familiar to C# and Java developers, and they are likely to change the structure of PHP applications for the better. [...] Name collision problems can be solved with namespaces. PHP constants, classes, and functions can be grouped into namespaced libraries

comment save report
category icon

Building Database Interfaces

in PHP added by goodphptutorials, on 12/1/2006 database databases dml interface mysql objects oop query

This article is about using and building Database Interfaces (DB interfaces). DB interfaces make application development faster and easier. This is accomplished by relocating scattered DML (Insert, Update, Delete) statements into a single shared tool, the Class. A Class encapsulates data post processing, integrity, and security into a single tool that can be accessed throughout the application.

comment save report
category icon

Sending SMS from your website

in PHP added by Junyor, on 20/10/2007 advanced tutorials class php oop open-source send sms sms

An article about how to send SMS from your website using the ClickATell API.

comment save report
category icon

Five common PHP design patterns

in PHP added by goodphptutorials, on 12/8/2006 architecture oo programming oop patterns

Design patterns are just for Java? architects -- at least that's what you may have been led to believe. In fact, design patterns are useful for everyone. If these tools aren't exclusive to architecture astronauts, what are they, and why are they useful in PHP applications? This article explains.

comment save report
category icon

Stay away from Bloated Class Methods, actually, bloated ANYTHING!

in PHP added by rvdavid, on 22/3/2008 classes methods oop php5 principles tips

Why are there so many examples of bloated PHP methods out there?! I see a lot of bloated methods being used in examples through sites like phpclasses.org and a very large chunk of a project I’ve recently picked up which a few developers have worked on. Guys! remember! There is no good reason to bloat your methods to over 10-20 lines long and on the rare occasions that you do exceed 10 - 20 lines it would be more the exception to the rule as opposed to being the rule itself!

comment save report