browse by tag: oo programming
sort by
State of the Zend Framework 2.0
in PHP added by goodphptutorials, on 10/6/2010 oo programming php5 zend framework
The past few months have kept myself and my team quite busy, as we've turned our attentions from maintenance of the Zend Framework 1.X series to Zend Framework 2.0. I've been fielding questions regularly about ZF2 lately, and felt it was time to talk about the roadmap for ZF2, what we've done so far, and how the community can help.
comment save reportAccessing Amazon Product Advertising API
in PHP added by goodphptutorials, on 26/5/2010 Amazon advanced tutorials oo programming php5 web service
In this post we will see how to access the Amazon Product Advertising API from PHP. Amazon has recently changed (from 15th Aug '09) the authentication mechanism for accessing their API which must now be signed with your Amazon keys
comment save reportWriting an OAuth Provider Service
in PHP added by goodphptutorials, on 23/5/2010 oauth oo programming php5
Last year I showed how to use pecl/oauth to write a Twitter OAuth Consumer. But what about writing the other end of that? What if you need to provide OAuth access to an API for your site? How do you do it?
comment save reportOrganize Your Project like a Pro with PHP Namespaces
in PHP added by goodphptutorials, on 20/5/2010 namespace oo programming php5
PHP took a huge step forward in June 2009 with the release of version 5.3. It wasn't quite as big of a change as version 5.0, but the release did introduce a number of new language features including namespaces — an addition that can dramatically improve the way you organize your PHP in an object oriented paradigm.
comment save reportDoctrine MongoDB Object Document Mapper
in PHP added by goodphptutorials, on 15/5/2010 doctrine oo programming orm php5
A question asked to me many times by many different people over the last year is, "will Doctrine ever have any support for MongoDB?". I have never really had an answer because we haven't had any official plans to support it as it was so new to the database world and php so nobody really knew much about it yet.
comment save reportTips for Working with DateTime in PHP
in PHP added by lornajane, on 9/5/2010 advanced tutorials date oo programming time tips
A few quick tips for working with PHP's DateTime classes, including instantiating the objects, outputting in various formats, and storing dates and times an an accurate and easy-to-use way
comment save reportPHP Design Patterns Reference and Examples
in PHP added by goodphptutorials, on 30/4/2010 advanced tutorials design pattern oo programming php5
Quite a comprehensive list of programming design patterns illustrated with code examples in PHP5
comment save reportFind your Files
in PHP added by goodphptutorials, on 22/4/2010 file handling framework oo programming php5 symfony
The best practices for finding files with PHP has evolved a lot in a the last few years. Back in 2004, one of the very first thing I did with PHP was porting the File::Find::Rule Perl module to PHP. File::Find::Rule is a great way to describe the files and directories you want to work with. I used the opendir, readdir, and closedir native PHP functions, and it did the job quite well. The PHP class was named sfFinder, and it can still be found in all symfony versions. Even if the class is bundled with symfony, I know that a few people use it for all kind of stuff, not necessarily related to symfony.
1 comment save reportA Lesson In Static Methods And Late Static Binding
in PHP added by goodphptutorials, on 21/4/2010 framework oo programming php5 zend framework
Until last week, I had never experienced what must have been incredibly frustrating to most developers: the fact that the self keyword in PHP refers to the class it is located in, and not necessarily a class that extends it. I personally ran into this problem when trying to extend Zend_Auth.
comment save reportFacebook style chat with jQuery and Joomla
in PHP added by prodevtips, on 29/3/2010 AJAX advanced tutorials oo programming php5
Tutorial on how to create a Facebook style chat with the help of jQuery and PHP.
2 comments save reportMultiple select lists with jQuery, JSON and PHP
in PHP added by prodevtips, on 25/2/2010 AJAX json oo programming php5
Tutorial on how to prepopulate and save a multi select list selection by way of Ajax, JSON and jQuery.
comment save reportZend Framework on a shared host
in PHP added by goodphptutorials, on 10/1/2010 framework oo programming php5 zend framework
When you deploy a Zend Framework website to a shared host, you usually cannot change the DocumentRoot to point at the public/ folder of the website. As a result the URL to the website is now http://www.example.com/public/. This doesn't look very professional, so we'd like to remove it. The easiest way, given a ZF project created using Zend_Tool.
comment save reportUnderstanding MVC in PHP
in PHP added by goodphptutorials, on 30/12/2009 advanced tutorials mvc oo programming
This article series (continued in Implementing MVC in PHP: The Controller, Implementing MVC in PHP: The View, and Implementing MVC in PHP: The Model) demonstrates how to build an MVC web framework using PHP 5. This article covers the basics of MVC web frameworks, building the foundation classes for a framework that the other three articles in this series will build.
comment save reportFacebook style photo tagging with jQuery, Ajax and Joomla
in PHP added by prodevtips, on 28/11/2009 AJAX advanced tutorials oo programming php5
Facebook style photo tagging with jQuery, Ajax and Joomla
2 comments save reportNever write the same code twice: Dependency Injection
in PHP added by goodphptutorials, on 20/11/2009 dependency injection oo programming php5
Is Dependency Injection difficult? Is it hard to do? Certainly it provides value. Particularly in Php, but also in other object-oriented languages, Dependency Injection gives steroids to the process of class reuse, designing components as loosely coupled objects.
2 comments save reportPHP on the D-Bus
in PHP added by CalEvans, on 10/11/2009 advanced tutorials oo programming php5 podcast
The D-BUS Inter Process Communication mechanism is the basis for many system-related functionality on Linux-based systems. Both GNOME, KDE, as well as the Open Moko Linux computing platform use it extensively for everything related to talking to services and hardware. Skype, as well as other applications, provide D-BUS APIs as well. In this presentation I will be presenting a PHP/D-BUS integration to allow PHP to talk to D-BUS aware applications. I will demonstrate controlling Skype from PHP, as well as the implementation of PHP-GTK based applications on the OpenMoko to talk to, and use the different hardware services it offers, such as GSM and GPS. This talk should show a few things that people don’t really associate PHP with, and thus provide some insight that PHP’s strength is not only on the Web.
comment save reportZend Framework: File upload using Zend_Form_Element_File
in PHP added by goodphptutorials, on 20/8/2009 Zend framework oo programming php5
This post will be helpful for all people who are wishing to get some practicle example for using Zend_Form_Element_File of Zend framework's Zend_Form.
comment save reportWhy PHP Frameworks Matter
in PHP added by goodphptutorials, on 13/8/2009 frameworks oo programming php5
n a 1998 interview with Dr. Dobb’s Magazine, creator of the Perl programming language Larry Wall concluded his answer to the final question with a tip I’ve never forgotten, remarking, “Take a good look at what you want to do, and try to come up with the long-term lazy way, not the short-term lazy way.” [1] To paraphrase another Larry Wall-ism, in the programming world “laziness is indeed a virtue”, and if you’re not a lazy programmer, then frankly you’re not trying hard enough.
comment save reportAdding Ajax with jQuery to Joomla 1.5
in PHP added by prodevtips, on 3/8/2009 advanced tutorials content management mysql oo programming php5
How to quickly add Ajax anywhere in Joomla 1.5 using jQuery.
comment save reportDesign Patterns in PHP [PDF]
in PHP added by nirajam, on 29/7/2009 advanced tutorials beginner tutorials oo programming php5
In this tutorial you learn some of the Design Patterns and how to implement them in PHP. These are an essential part of OOP and make your code more effective, better performing, and easier to maintain. Sometimes we implement these design patterns in our code without knowing that these solutions are defined by design patterns. Proper usage of the correct pattern can make your code perform better; similarly using them improperly could make your code slower and less efficient.
comment save reportMySql Prepared Statement in PHP
in PHP added by cyberhitesh, on 10/7/2009 advanced tutorials oo programming php5
I was wondering whether PHP also give a feature of Prepared Statement as you have in Java JDBC Connection. Prepared Statements are always better than normal statements as it prevent SQL Injection etc.
1 comment save reportParsing with Zend HTTP Client
in PHP added by prodevtips, on 28/3/2009 oo programming parsing php5 zend framework
Example of how Zend HTTP Client is used when parsing statistics, logging in to sites and handling cookies.
4 comments save reportCreating a MySQL Database Class Using the Singleton Design Pattern
in PHP added by thatspoppycock, on 24/3/2009 design patterns mysql oo programming php5 singleton
Using the Singleton Pattern is a simple way to limit the number of instances of an object to just one, helps keep database connections organized, and saves memory. This tutorial will help you create a MySQL database class using this popular design pattern.
1 comment save reportMVC, XML and other animals
in PHP added by nou, on 22/3/2009 oo programming php5
This article will briefly expose the basics of the MVC pattern and put forward a template management system based on the duo XML/XSLT.
comment save reportBasic CRUD scaffolding with PHP Doctrine + Smarty
in PHP added by prodevtips, on 15/2/2009 advanced tutorials oo programming php5
Example of how a simple system for creating a CRUD interface from the information in the model classes.
1 comment save report