Archive for the ‘Object Oriented PHP’ Category

New Video Tutorial: Build A Content Management System

Wednesday, June 1st, 2011

I am happy to announce yet another screencast tutorial for all you nerds out there: Build A Content Management System.

OK, not the most exciting title, but still an exciting course for those PHP nerds who want to go from PHP basics and get into building a full-fledged PHP application from scratch.

Learn how to build a content management system that provides a website all the tools needed to allow basic web users to manage the website content with ease. Over 6.5 hours of tutorials over 41 videos!

Here are some details about the video tutorial:

This course is aimed at intermediate level web developers, demonstrating how to build a basic PHP based content management system that uses object oriented programming techniques and implements the MVC pattern.

Along the way, I cover a wide range of technologies, including HTML and CSS, a bit of javascript/jQuery/AJAX and PHP/MySQLi. I also show how to integrate Colorbox (a jquery plugin) and TinyMCE (for the WYSIWYG functionality.)

Read more: Building a PHP based CMS

Check out the CMS course sample videos

Thanks,

Stefan Mischook

PHP OOP Basics Video on Creating Classes and Class Sizes

Tuesday, May 10th, 2011

In this video blog, Stefan answers a couple of basic questions on PHP classes.

For more information on Web Programming, check out the Killersites Video Tutorial Library!

Note that all of our videos are in a higher quality when purchased from our Killer Video Store or by subscription to our Video Tutorial Library!

Thanks,

Jody
Killersites.com

New PHP course on building a CMS is out!

Sunday, May 1st, 2011

Hi,

I just wanted to mention a couple of changes in the video library:

- we have a new course: New PHP course: Build a Content Management System.
- we now simplified to the subscriber types to just two: Standard (3 month) and Premium (1 year)

Check out the details:

video library subscription types

That’s all for now.

Stefan Mischook
killersites.com

What are ORM Frameworks?

Tuesday, December 8th, 2009

Database Image

In the following article we will learn a few things about ORM frameworks:

  • What they are.
  • What they do.
  • When and why to use them.
  • And finally, what ORM options PHP’ers have.

Let’s start …

If you’re working with PHP, you will certainly find yourself working with relational databases (like MySQL) sooner or later. Anyone who has ever built a reasonably complex web application knows, that the SQL can get really hairy at times – especially when you consider all the data filtering that you have to deal with!

ORM frameworks to the rescue!

ORM is yet another nerd-acronym, it is short for Object Relational Mapping. In a nutshell, an ORM framework is written in an object oriented language (like PHP, Java, C# etc…) and it is designed to virtually wrap around a relational database. If you look at the name (ORM), it basically translates into: mapping objects to relational tables.

There are many different competing ORM frameworks out there, because many nerds have their own ideas as to how to best do things – nothing new here! But you know what, some of these nerds are right … not all ORM frameworks are created equal.

(more…)

Live Webinar on Google Wave and the Zend Framework

Monday, November 16th, 2009

Hi Guys,

My good buddy and right-hand-nerd, Jon is being flown down to do a live webinar for the Zend geeks at Intuit. It seems the accounting giant has recognized Jon’s ability to take the complex and make it seem simple.

Just in case you don’t know, Jon is the author of our crazy cool shopping cart tutorial and our new series on advanced PHP.

… Jon is starting to realize that my choice to go with the Zend Framework a few years ago made sense. Actually, it made dollars and cents!

:)

OK, bad nerd humor … I know. I’m just low on material that isn’t profanity laced.

If you want to know WHY, after looking at all the other PHP frameworks out there, that I thought the Zend Framework was the best choice long term (even back when Zend was still in Beta) .. you’re going to have to ask!

Anyway here is the official announcement:

Jon Lebensold, author of the popular PHP Shopping Cart and founder of Zendcasts.com will be writing a Google Wave Gadget in Boston at Intuit’s East coast office. Intuit is setting up a live webinar which you can attend by registering on the Zendcasts website.

Zendcasts.com began this year with the hope of assisting intermediate PHP developers further their Zend Framework skills. If you’re a PHP developer interested in building apps on Google Wave or want to watch someone build an AJAX application with web services like Google Wave and Intuit’s QuickBase, this free webinar will be worth spending a lunch hour at your desk.

The webinar takes place Wednesday, November 18 at 12:00 (noon) Eastern Standard Time (GMT -05:00).Register online now.

Here’s the banner:

qb-gwave-promo

Just in case you are not familiar with Quickbase … just click on the link.

That’s it for today. But coming soon, I will have some pretty big news … actually, the biggest thing to come to killerphp.com since we ordered that huge pizza! Ok, even bigger than that!!

;)

Stefan Mischook
www.killerphp.com

Getting into PHP6 and Advanced PHP Concepts Part 7

Friday, November 6th, 2009

Hi,

In our never ending quest for pure PHP nerdness, we continue our look at advanced PHP. This is video 7 of a series of videos where we explore PHP6 and other advanced PHP concepts, concepts often seen in PHP frameworks like Zend, PHP Cake and others.

The video:

More to come.

Stefan Mischook
www.killerphp.com

Getting into PHP6 and Advanced PHP Concepts Part 2

Tuesday, October 20th, 2009

boxshot-advphp

Hi everyone,

As promised, here is my second installment of our new PHP video tutorial course that covers more advanced PHP subjects including:

- PHP 6
- Advanced PHP architectures seen in PHP frameworks like Zend, CakePHP etc …
- Magic methods
- anonymous functions
- namespaces

Etc …

The second video:

Just in case you missed it, here is the link to the first part of Getting into PHP6.

Thanks for watching,

Stefan Mischook
www.killerphp.com

Getting into PHP6 and Advanced PHP Concepts Part 1

Friday, October 16th, 2009

boxshot-advphp

Hi everyone!

I’m back again (after my big move across town) and this time, I’ve got a new set of PHP video tutorials!

… Yes, people started to wonder why killerphp.com had a bunch of Javascript videos coming out; shouldn’t those videos belong on killerjavascript.com!?

;)

Anyway, I am happy to announce our new set of PHP videos that cover more advanced PHP subjects including:

- PHP 6
- Advanced PHP architectures seen in PHP frameworks like Zend, CakePHP etc …
- Magic methods
- anonymous functions
- namespaces

Etc …

The ultimate goal of these techniques is to learn how we can write more compact PHP code.

The first video:

That’s all for now.

… Now if only I can figure out why my new external drive is clicking?

Stefan Mischook
www.killerphp.com

What makes a professional programmer?

Tuesday, August 11th, 2009

I recently got an email question put to me by someone wanting to know what makes a professional programmer:

Since I have started my career, I have been working for managers who really don’t know how to program. I have been improving myself through tutorials and books. However, I still don’t know whether i’m a good programmer or just better than the guys i’m working with.

Can you tell me what makes a good programmer? Better yet, please tell me what level should a PHP programmer be at after three years of development?

The short answer:

A good programmer is able to put out clean code that works and is easy to update. Simplicity is a sign of professionalism in any profession or discipline.

In the same email, he continues to ask:

Can you give me a list of books or subjects I should know by now (three years of development). Any advice you give would be much appreciated.

Beyond PHP basics (and the core functionality), I would suggest that PHP programmers should work to learn the following:

  1. Object Oriented PHP
  2. Learn about design patterns. Important ones include: MVC, decorators and factories.
  3. Learn an MVC framework like the Zend Framework or PHPCake etc …
  4. Get deeper into PHP; understand how it works under the hood. This will help you later on when trying to decided how to most effectively build applications.

Notes:

Like any other language, PHP sometimes gives you a few ways to do the same thing. It makes sense to learn the advantages and disadvantages of each for the sake of optimized code. For example, PHP provides a few different ways to interface with MySQL … you have the classic libs but you also have new object oriented methods.

When it comes to learning design patterns, it might be easier to learn a PHP framework at the same time. Why? Many of these frameworks often times provide great examples of popular design patterns.

Final comment:

Though the above is ideal, I’ve have seen many PHP programmers who don’t have half the skills I mention above, but were still effective programmers who got the job done.

Stefan Mischook

www.killerphp.com

PHP Video: Controllers in MVC

Thursday, June 25th, 2009

php video

Hi,

In this video, I talk a little about the MVC design pattern with special attention to the middle layer in MVC: the ‘controller’.

A few points:

- MVC is short for Model View Controller
- The Controller is the part that brokers the communication between the View and the Model.
- The Controller is the throw-away part in MVC.

Watch the video for more details.

(more…)

PHP Shopping Cart Tutorial

Tuesday, September 9th, 2008

video tutorial

Hi,

I just released a new PHP shopping cart video tutorial for beginners. In this series of videos, you learn how to build a PHP based shopping cart that works with Paypal. Some highlights:

  • It’s object oriented – almost!
  • The shopping cart ‘talks’ to Paypal.
  • Learn how to create XML documents and how to process them with PHP.
  • You also learn a few ‘best practices’ when it comes to programming.

I hope you enjoy.

Stefan Mischook

www.killersites.com
www.killerphp.com

How to call functions from another class.

Saturday, July 19th, 2008

Many of my articles and videos are based on questions that I see popping up in the php forums or in emails sent to me personally.

Recently I was asked by someone how they could call a function found in one class, in another. This may seem like basic stuff to those of us who know … but please keep in mind, at one time, none of us knew anything!

:)

Anyway, here is my video on using a function from another class in a class.

Note to CodeIgniter nerds: please, no looping code in your views.

Thursday, June 5th, 2008

codeIgniter-logo

I was researching things ‘nerd’ on the Web today, and I found myself at the CodeIgniter website.

For those of you who may not know, CodeIgniter is an MVC PHP framework.

What is an MVC framework?

I won’t go into details here since we’ve covered MVC basics elsewhere. Let me just say though, that an MVC framework is a bunch of PHP code organized into a reusable structure/system designed to make building web applications easier.

MVC is short for:

- Model
- View
- Controller

The general idea is to keep code separated by it’s function.

(more…)

Aprenda Programacion Orientada a Objetos en PHP

Monday, May 12th, 2008

Hi,

I’ve released my tutorial on Object Oriented PHP in Spanish.

php logo

You can download the PDF:

Aprenda Programacion Orientada a Objetos en PHP.pdf

Many thanks to Javier W. Barbieri from Iquitos Peru.

PS: I have new PHP tutorials coming out soon.

Stefan Mischook

www.killerphp.com

Setting up an MVC structure with the Zend Framework – part 1

Monday, March 24th, 2008

Hi,

I just released a new video on setting up an MVC structure with the Zend Framework. This video is a little more basic than the previous Zend videos … I had to twist Jon’s arm a little.

zend framework logo

Anyway, let us know what you think and should you have any suggestions or request, please feel free to comment.

Running time: 12+ minutes
Part 1 of 2.

Thanks,

Stefan Mischook

www.killerphp.com
www.killersites.com

Object Oriented Video Tutorials for your Ipod

Friday, March 14th, 2008

Hi,

I just released my beginners object oriented php video tutorials in iPod format.

ipod-php-video-icon

These videos target total beginners to object oriented programing. Though I talk about PHP, the principles are universal and so they apply to all OO (object oriented) languages including:

  • Java
  • Actionscript
  • C#
  • Ruby

.. and others. So if you are struggling to understand OOP concepts while trying to learn another language, these should help you along.

That said, I strongly believe that PHP is the best choice for web designers today.

Thanks,

Stefan Mischook

www.killerphp.com

Zend Framework Components – Part 1

Friday, December 14th, 2007

By: Jonathan Lebensold

Why aren’t you teaching me how to make a blogging / shopping cart application?

Because the Pragmatic Programmers did a fantastic job when they wrote their famous Rails book “Agile Web Development with Rails.” Crowds ooo-ed and aaa-ed when the rails camp wrote tutorials that described “how to make a blog in ten minutes using Rails.” PHPCake responded. They wrote a tutorial, and then people writing about Zend did the same thing.

When Stefan asked me to write about the Zend Framework, I decided I would avoid copy-able code, simply because it doesn’t re-enforce good software design. I’ve also read through many of these tutorials (most of which are excellent), however they tend to be misleading for several reasons:

- They don’t presume a complex view (with headers and footers that have dynamic logic)
- They don’t introduce core object libraries, but rather skim past them to get to the event-driven stuff (found in Zend_Controller, which I’ll cover soon)

(more…)

A Question about object properties in PHP Classes.

Thursday, December 6th, 2007

I got this question put to me recently:

Since you say it’s bad practice to access object properties directly from outside the class, is it then good practice to declare all variables as protected or private to force yourself to not?

My answer:

Yes.

Many OO techniques are designed for situations where you will have more than one programmer involved, now or later. By declaring variables as protected or private, you are adding security to the code base by forcing the use of getter and setter methods where you can control how objects are used.

The thing is that with PHP, since the code is not compiled a programmer could just pop open the script and make changes. Whereas with compiled languages like Java, the users of your class have no choice.

… Unless they decompile the class!

The Zend Framework: Writing Object-Oriented PHP with Ease.

Wednesday, November 21st, 2007

Introduction

In my attempt to turn you nerds into uber-nerds, I’ve been lucky enough to get the young and talented Jon Lebensold (my right hand nerd) to bang out a few articles (and soon videos) on some of the emerging PHP technologies and working practices that take PHP into the enterprise arena.

Enterprise arena = sophisticated scalable and adaptable code.

About this article:

The following article introduces you to ‘web application frameworks’. If you don’t know what this is, read on and you soon will. But for those of you that are impatient … in a nutshell:

A web application framework is a set of code libraries (in our case, that would be libraries written in PHP) that handles/does many of the things that we typically need to do when building database driven websites.

For more details, you need to read the article.

Stefan Mischook

-

The Zend Framework: Writing Object-Oriented PHP with Ease.

By: Jon Lebensold

This article aims to introduce the concept of developing a PHP application with a set of libraries that facilitate development by abstracting ones self from writing generic libraries.

We know that classes are composed of behaviours (methods) and data (properties), however their value only becomes apparent when we develop applications in layers, with different components answering different questions.

What Does a Layered Development Approach Look Like?

(more…)

Object Oriented PHP Tutorial in PDF

Tuesday, September 11th, 2007

php logo

Hi,

I’ve had several people request that the article on object oriented PHP be made into a PDF for offline viewing.

oop in php

Well … here you go: oop php pdf

The PDF also contains links to the accompanying videos.

Thanks,

Stefan Mischook

www.killerphp.com
www.killersites.com

Top of page  go to top of page