Archive for the ‘Zend-Framework’ Category

Which PHP Framework is best?

Friday, October 31st, 2014

Hi!

I get asked a lot: which is the best PHP framework? Or, should I choose PHP framework A or should I should PHP framework B?

The short answer: it depends! See below for the deeper answer.

When considering a framework, besides checking out what the uber-nerds are talking about at the time, consider the current cutting-edge thinking about frameworks in general, and be sure your choice of a framework, is up-to-date in that regard.

The no-framework PHP framework

For example, the move these days, is towards the ‘no-framework framework’ style of framework – that’s a tongue-twister! Basically, the more advanced a framework is, the more open it is.

You should be able to drop in components as you need then from any source. So for instance, if you don’t like the ORM layer in a framework you happen to be using, you should be able to easily plugin some other ORM.

At the end of the day, learning one framework or another should not be considered the end of the path – you should expect to have to learn a new framework from time to time … as things mature. The good news is that once you’ve learned your first MVC framework, the rest will come pretty easily since they are all based on the same basic concepts and patterns.

So, choose whichever framework you feel like!

Stefan Mischook
KillerPHP.com

CodeIgniter vs Laravel

Friday, February 22nd, 2013

Hi,

So a bunch of CodeIgniter nerds/contributors decided to build a new framework because things about CodeIgniter didn’t sit too well with them … tell me something new.

Don’t get me wrong, I am not putting down the Laravel crew for what they did, I just wanted to point out this happens all the time.

So what’s the point of this Friday afternoon blog post?

(more…)

PHP, Zend Framework, Ruby and Web App Frameworks.

Sunday, May 20th, 2012

I recently had a conversation with a good friend of mine who has his finger on the pulse of the web app developer community – whether it be PHP, Ruby and even .Net.

So I asked:

Last we spoke, you mentioned that the Zend Framework was in a do or die situation?

Can you elaborate on that? I am just curious.

Stef

His answer:

Something I’ve noticed is that the idea of a monolithic framework is kind of dying. If you look at ruby on rails, it started off as a monolithic code base maintained by 37 Signals. Because of that, they wrote the Javascript layer, the ActiveRecord implementation for persistence, the view-controller architecture etc…

Rails 3.x is a completely different monster. They replaced their JS layer with jQuery. They replaced their ORM with Arel and ActiveRecord is now a thin wrapper around Arel. They replaced their web server archictecture with “rack” middleware. What this has done is standardized certain portions of the framework to the point where they are truly modular. In the rails community another framework will advertise that it’s “rack compliant” or “built on top of Arel”. What this means is that 37 Signals isn’t *the* ruby company and so they can specialize and delegate, while providing a strong brand that promotes software development best practices.

In the ZF community, ZF 1 worked ok, but it relied on a few anti-patterns (heavy use of singletons in order to ensure that performance wasn’t abismal). ZF 2 is trying to address that, but they have a really small team of strong PHP developers that are working on the core pieces (like the MVC implementation and the persistence). This has made the release of ZF 2 “just around the corner” for about 6 months now.

Also, because the people doing the rewrite wrote the first ZF, they want to clean up all their mistakes and so there’s a bit of ivory tower engineering going on (heavy use of dependency injection and inversion of control patterns), which will make the framework less friendly to beginners. Add to that the fact that Zend_Db was a huge face-palm and that people want integration with Symfony (a competing PHP framework) components, Zend is going to have to give some ground and start making some tough calls to deliver.

Finally, they HAVE TO DELIVER, because ZF 2 is written with the assumption that you’re using PHP 5.3+, which will be a huge shift for large code bases that haven’t seen a serious rewrite since PHP 4. If they don’t make ZF 2 a resounding success, the community around ZF will probably move to greener pastures (my money is on symfony or just not PHP).

my 2 cents,

… Some interesting thoughts, so I continue:

Very cool.

Now that a few years has passed, what do you think of Ruby vs. PHP these days? When we looked at it, I found the libs a little weak .. I imagine all those wholes are filled by now.

Stef

His response:

I think Ruby’s shaping up nicely for getting something done quickly and elegantly. There’s a huge aversion to ivory tower architecture, which I appreciate. I think that there are still performance issues on the whole that are being addressed, but now there are a lot of different ways of dealing with it (or even not dealing with it by using a cloud service like Heroku).

I would also look at erlang. Erlang is a whole different paradigm, but I could see it growing in terms of handling middleware development or places where you need high-volume, high-concurrent systems that are scalable. This is a language that I’m hoping to dive into in 2013, but I think Ruby / Javascript will be my bread and butter.

The Javascript framework wars have really heat up lately, and I would be looking at BackboneJS. It builds on top of jQuery to provide a very nice model for wiring events and writing views / models / controllers in the browser.

My final thoughts

My buddy has been developing web apps for years and has worked with several technologies – he like me, is language agnostic. We pick the best tools/language for the job, and we don’t get too religious about anything in particular.

So does this mean PHP is on its’ last legs or am I advocating Ruby? No, PHP is not going anywhere. I decided to post this just as food for thought … something that you can keep in mind as you develop your skills and your career.

Stefan Mischook
killerphp.com

The Trend is Zend … in PHP

Tuesday, February 9th, 2010

zend framework logo

Hi,

People ask me from time to time, what PHP framework is the best one to learn?

Well, I always look at technology choices with two things in mind:

  1. How capable is the technology?
  2. How accepted is the technology?

If you look around, it becomes pretty clear, that if you want to learn an effective web application framework, you want to learn the Zend Framework – indeed, the trend is with Zend.

Zend framework being used by companies large and small

I know from first-nerd experience that the Zend Framework is being widely adopted. Just recently for example, Intuit and the BBC have implemented new web apps that are Zend Framework based.

… I know because my good buddy Jon Lebensold of Zendcasts helped build one of them.

There are plenty of other examples out there I’m sure … and I am confident that the trend will continue towards the adoption of the Zend Framework. With the PHP company (Zend) and IBM behind it … it doesn’t take a brain surgeon to figure that one out.

Thanks for reading,

Stefan Mischook
www.killerphp.com

Two thumbs up for the Zend Framework Nerds.

Tuesday, January 26th, 2010

microphone-podcast-icon

Hi,

I’ve been busy with things and so not too many updates lately. Not to worry thought, we have a brand new course and lots of free videos coming out soon on advanced MySQL.

In the following podcast (it was a video but I changed my mind …), I talk about the pragmatism of the Zend Framework dudes.

MP3: zendframework-and-doctrine

Short and sweet.

Stefan Mischook
www.killerphp.com

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

PHP Video: Why Zend instead of other PHP Frameworks?

Sunday, June 14th, 2009

php video

Hi,

In response to my a recent podcast where I recommended that PHP programmers learn the Zend Framework, I was asked why I choose Zend, rather than other PHP frameworks.

The video:

(more…)

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

Wednesday, March 26th, 2008

Hi,

I’ve released our second video (part 2 of 2) on setting up an MVC structure with the Zend Framework.

zend framework logo

This Zend Framework video is from our resident Zend-nerd: Jon Lebensold.

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

Running time: 19+ minutes
Part 2 of 2

Thanks,

Stefan Mischook

www.killerphp.com
www.killersites.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

PEAR vs. Zend Framework

Friday, March 14th, 2008

PEAR vs. Zend Framework

Now that the Zend Framework is ready for ‘prime time’, I’ve been considering the Pear framework with regards to how it now fits in the PHP world.

zend framework logo

NOTE:

Several picky nerds have pointed out that PEAR is not a framework – check out the comments below. OK, I would agree, technically speaking, PEAR is not a framework. That said, this is what the PEAR people say on the home page of their web site:

‘PEAR is a framework and distribution system for reusable PHP components. You can find help using PEAR packages in the online manual and the FAQ.’

Anyway, that is an argument of semantics and nerd-details … not the point of my article.

… Back to my article:


Both Zend and Pear are frameworks but how are they different?

I would say that the Zend Framework attempts to create a comprehensive whole – a consistent set of components that are designed to work together in a unified manner.

… That is one of the reasons for a framework in the first place.

Though unified, one of the cool things about the Zend Framework is that you can just pick and choose what components you want to use – you don’t have to buy the whole cake to take advantage of all that juicy object oriented PHP code.

About PEAR:
pear-framework-logo

With the Pear framework, it is more of a hodgepodge/motley of assorted components. Pear is widely used (and useful) but it does cross over (in terms of functionality) with what we have in the Zend Framework. So the question that comes to my mind is:

Do we still use Pear, if we have the Zend Framework?

(more…)

Zend Framework Video Tutorials

Sunday, March 9th, 2008

zend framework logo

I just launched a new section on Killerphp.com on the Zend Framework.

I figured it only made sense, given that we’ve built two live web applications based on it:

Video sharing site: www.idea22.com
Web template sharing site: www.webshapes.org

For those of you who are not familar with the Zend Framework:

The Zend Framework is a web application framework designed to make building complex PHP based web applications easier.

The Zend Framework contains a series of components (built using PHP 5) that manages many common task in web application development:

* Zend_Form: to make form handling/processing easier.
* Zend_Mail: makes email functionality trivial to create in PHP.
* Zend_Db_Adapter: to connect to databases.
* Zend_Pdf: allows you to easily create and edit PDF documents.

… And this is just a small sampling.

There is a lot more in the works in terms of our videos and articles.

Thanks,

Stefan Mischook

www.killerphp.com
www.killersites.com

Zend Framework: Using View Helpers to Build Rich, Scalable, Controls

Tuesday, January 29th, 2008

Using View Helpers to Build Rich, Scalable, Controls
by: Jon Lebensold

Whether you’re developing an ASP.NET application, working with rails or dealing with a templating engine like Smarty, the idea of partial templates is not foreign. Partial templates allow developers and designers to work with panels or sub-groupings of content that need to be dynamic.

With a proper AJAX framework in place, these controls can be written in a way that they can be updated in whichever Controller they eventually reside. This kind of flexibility can allow you the flexibility of using certain signature controls for multiple parts of an application.

(more…)

Zend Framework Components Part 2: Zend_View

Monday, January 14th, 2008

By: Jon Lebensold

zend framework logo

As part of a series of articles about the Zend Framework and MVC, I’d like to take some time and cover Zend_View (the ‘V’ in that MVC triad).

Within the Zend Framework architecture and documentation, Zend_View is often coupled with the Zend_Controller as a means of providing a templating engine that encourages smart defaults over explicit programming.

For example, if I have a Controller named ‘AccountsController’ with an action (AKA a method that ends in ‘Action’ inside the AccountsController) called “new”, this would be mapped to the url “mydomain.com/Accounts/new”.

After running whatever is found inside AccountsConroller::newAction(), the Zend_Controller would be clever enough to dig out of my application/views/scripts folder, the Accounts/new.phtml file as a template for the action in question.

(more…)

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…)

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…)

Created By Stefan Mischook  |  Top of page  go to top of page