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

goodphptutorials has submitted 407 links

category icon

Organize 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 report
category icon

PHP Integration with Salesforce CRM

in PHP added by goodphptutorials, on 19/5/2010 crm integration salesforce

If your primary clientele is small to medium business owners, as I imagine is the case for most professional developers these days, chances are you have developed custom applications that interact with Salesforce CRM. For those of you that have not had the delight of integrating with Salesforce, let's walk through the most common integration techniques.

comment save report
category icon

Doctrine 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 report
category icon

Decoding a User Space Encoded PHP Script

in PHP added by goodphptutorials, on 14/5/2010 advanced tutorials encryption security

Every once in a while a new PHP encryption tool/service pops up and offers PHP “encryption”. Therefore the idea behind php-crypt that was announced today in the PHP Development forum of Xing is nothing new. Infact there are two types of PHP encryption systems source code obfuscators/encryptors/encoders and bytecode obfuscators/encryptors/encoders.

comment save report
category icon

PHP 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 report
category icon

Learning PHP 5.3 by writing your own ORM

in PHP added by goodphptutorials, on 28/4/2010 advanced tutorials orm php5

Creating an ORM for PHP is not an everyday task but writing one is a good way to improve your PHP skills, especially if you use some of the additional features PHP 5.3 adds to the language. There are many excellent ORMs (Object Relational Mappings) already in existence and for a real-world project it would probably better to use one of these, but this tutorial uses the task of creating an ORM as a way to take a look at applications for some PHP 5.3 features.

comment save report
category icon

Find 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.

comment save report
category icon

A 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 report
category icon

Fast PHP - effective optimisation and bottleneck detection

in PHP added by goodphptutorials, on 20/4/2010 cache optimisation performance xdebug

PHP is not the fastest language on earth. That honour probably goes to machine code. But like many high-level languages, PHP provides some handy abstractions, like named variables, hashmaps (associative arrays), a C-like syntax, object oriented capabilities, loose typing and so on – we trade processing speed for development ease.

comment save report
category icon

Rediska and Sesh: Minimizing RAM usage in your session.

in PHP added by goodphptutorials, on 31/3/2010 advanced tutorials key-value nosql redis rediska

As I begin writing this, I realize I am in some way contributing to all the noise and novelty around "NoSQL". As tempting as rewriting your website to use Cassandra may be, the chances that an objective cost-benefit analysis will support your opinion are pretty small when your project is out to make money.

comment save report
category icon

PHP Buzz Stream Reader

in PHP added by goodphptutorials, on 29/3/2010 advanced tutorials google buzz web service

I'm on to the next shiny thing: Google Buzz. It provides the instant gratification of Twitter, along with a system for commenting, liking, geolocation, sharing links, and more. It's sort of like Facebook, except that it's embedded into GMail and there's no Mafia Wars yet.

comment save report
category icon

Tips for working with Zend_Search_Lucene

in PHP added by goodphptutorials, on 10/3/2010 Zend advanced tutorials framework lucene search

A common misstep for a developer who is implementing Lucene for the first time is to stuff an overabundance of data inside it, reducing performance. For someone who doesn't have a background in natural language processing or information retrieval, some data normalization steps may not come naturally. This post specifically regards Zend_Search_Lucene, but much of my advice can be abstracted across various languages to other Lucene ports, such as Lucene.NET.

comment save report
category icon

PHP Continuous Integration with Atlassian Bamboo

in PHP added by goodphptutorials, on 9/3/2010 advanced tutorials continous integration unit tests

Continuous integration is all the rage these days; you are unit testing your code are you not? During some consulting in January with the help of Sebastian Bergmann, from thePHP.cc, we setup continuous integration utilizing Atlassian Bamboo and received training on PHPUnit.

comment save report
category icon

Getting started with CouchDB: a beginner's guide

in PHP added by goodphptutorials, on 9/5/2010 beginner tutorials couchdb nosql

Have you ever dreamt about a powerful database that you can access easily, without using the SQL language? That what Apache CouchDB is all about. In this tutorial, I'm going to show you how to get started with this document-riented database and how you can use it with PHP.

comment save report
category icon

Scaling Web Applications with HMVC

in PHP added by goodphptutorials, on 23/2/2010 framework hmvc kohana mvc php5 scaling

The last decade has been witness to the second iteration of web design and development. Web sites have transformed into web applications and rarely are new projects commissioned that do not involve some element of interactivity. The increasing complexity of the software being developed for the internet fuelled a requirement for structured and considered application design.

comment save report
category icon

The Horrors of C99.php

in PHP added by goodphptutorials, on 22/2/2010 c99 security

If you were a sysadmin a few years ago, and you had php on your servers, you’re probably already familiar with c99.

comment save report
category icon

User authentication with a secure cookie protocol in PHP

in PHP added by goodphptutorials, on 14/2/2010 advanced tutorials authentication cookie hmac security

The use of cookies introduces a few security issues. The data in the cookie is stored in plain text and can easily be modified or hijacked. Liu et al. (2005) propose a secure cookie protocol which we will use as a guideline in this example.

comment save report
category icon

XHP: A New Way to Write PHP

in PHP added by goodphptutorials, on 10/2/2010 extension xhp xml

XHP is a PHP extension which augments the syntax of the language to both make your front-end code easier to understand and help you avoid cross-site scripting attacks.

comment save report
category icon

Faceoff: CodeIgniter vs CakePHP

in PHP added by goodphptutorials, on 7/2/2010 cakephp codeigniter framework php5

In the red corner, we have CakePHP, the heavyweight fighter with guns to show. In the blue corner, we have CodeIgniter, the lightweight fighter, quick on the feet.

comment save report
category icon

Howto Publish a Pear Package on Pearhub

in PHP added by goodphptutorials, on 17/1/2010 PEAR advanced tutorials pearhub

First of all you may be wondering what is Pear? From the Pear Documentation - "PEAR is short for "PHP Extension and Application Repository" and is pronounced just like the fruit". It is an umbrella-term that encompasses a package management system, an official package repository, a coding standard and a command-line tool.

comment save report
category icon

10 PHP functions you (probably) never use

in PHP added by goodphptutorials, on 14/1/2010 beginner tutorials functions general

When scripting in PHP, we often restrict ourselves to a limited number of API functions: the common ones, like print(), header(), define(), isset(), htmlspecialchars(), etc. If some needed functionality doesn’t exist, we often write it making use of these basic components which we have in mind. The PHP API actually offers a lot of functionality, some useless and some useful; often seldom used. I have been looking through the available functions and was interested to find some really cool functions that I should have known about. Here, I share my findings.

comment save report
category icon

Zend 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 report
category icon

Understanding 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 report
category icon

Setting up your Git repositories for open source projects at GitHub

in PHP added by goodphptutorials, on 15/12/2009 advanced tutorials git github version control

Like a lot of projects in the Ruby on Rails world, the Insoshi social networking platform uses Git and GitHub to manage its open source development and contributions. In setting up the repositories for Insoshi, I've applied the version control experience I gained at Discover, where I was technical lead for the software configuration management (SCM) team. Since some aspects of our setup aren’t obvious if you haven't managed large projects before, we at Insoshi decided to share the details so that other GitHub projects might benefit as well.

comment save report
category icon

Never 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.

comment save report