News Feed
Jobs Feed
Sections




News Archive
feed this:

Paul Jones:
How Is Aura Better Than (er, Different From ;-) Than Symfony and Zend?
December 07, 2012 @ 10:42:55

In this new post Paul Jones has reprinted an interview he did with PHP Magazin about the recent 1.0 release of the PHP framework project he is a lead on - the Aura project.

I did an email interview with the folks at PHP Magazin; their German version is here. What follows is our original email exchange in English.

They talked about some of the core principles behind the framework, its origins from the Solar framework, the team's "libraries first, framework second" methods and its push to be a PHP 5.4-focused framework. There's also a bit that compares the framework to two other popular options - Zend Framework and Symfony.

0 comments voice your opinion now!
aura framework project interview phpmagazin zendframework symfony


Hasin Hayder:
Running Zend Framework Applications in AppFog
November 15, 2012 @ 09:28:30

Hasin Hayder has a quick post to his blog today about how you can configure an AppFog instance to be able to run Zend Framework-based projects on them.

AppFog is quite a popular polyglot PaaS (Platform as a Service) provider and it comes with a generous free plan for the developers. [...] Recently, I was looking for a solution on how to host a Zend Framework based application in AppFog. The main problem was that the url must point to the /public folder inside the app and from there it is initialized. After searching for some time, I found the clue in AppFog's doumentation which is you'll have to redirect all the traffic from the parent domain to the /public/index.php file using the URL rewrite rules.

The rewrite rules are included in the post for easy cut-and-pasting. With the recently announced closing of their phpFog service (in favor of just supporting AppFog) I'm sure this tip could come in handy for a lot of developers out there.

0 comments voice your opinion now!
zendframework application appfog htaccess rewrite rule


Michelangelo van Dam:
Learning lessons at ZendUncon
November 13, 2012 @ 10:04:55

Michelangelo van Dam has shared something new he learned at the recent ZendCon conference about using fixtures with his PHPUnit testing.

In my previous post I already mentioned Sebastian Jerzy Wilczyński (@dj_sebastian_w) and his uncon session "Unit Testing for Databases using fixtures and phpunit". It made me wonder how much difference it would make if you use fixtures instead of testing database interactions using predefined sets of data. Since I work a lot with Zend Framework I was looking at how I could use fixtures and mock objects to follow Sebastian's guidelines. So I gave it a try. This is what I came up with.

He illustrates with some example code - a set of database data (the fixtures) and sample tests that use the Zend Framework's mapper and table gateway functionality to work with the tables. His test then mocks out the DbTable class for the "Order" object and forces a return of the database fixture data.

0 comments voice your opinion now!
phpunit database fixture mock zendframework unittest


Rob Allen:
ZendServiceManager configuration keys
November 12, 2012 @ 11:09:47

Rob Allen has a new post to his site sharing some examples of the configuration possibilities for the ZendServiceManager module of the Zend Framework 2.

ZendServiceManager is usually configured in two places: an array in a config file or a method within your Module class. In either case, you provide a nested array of configuration information. [...] Within the service_manager array, there are a set of nested arrays which are generally used to configure how you want a given class to be instantiated. the names of these sub-arrays are hardcoded, so you just need to learn their names and the difference between them.

He lists out each of the options and includes a brief example and description for each. Values include "invokables", "aliases" and "initializers". He also touches on controllers, view helpers and controller plugins and how they hook into the ServiceManager.

0 comments voice your opinion now!
zendframework servicemanager module configuration setting


7PHP.com:
Interview with Rob Allen Author of Zend Framework in Action
November 12, 2012 @ 09:47:52

On 7PHP.com today they've posted the latest in their interview series with people from all across the PHP community. In this most recent post, they talk with Rob Allen, author of the "Zend Framework in Action" book and well known speaker and Zend Framework contributor.

In this edition I talked with Rob Allen who is the main author of the famous PHP book "Zend Framework in Action". He is very passionate about the whole Zend stuffs: he's a contributor to the Zend_Config component in Zend Framework 1, he's a member of the Zend Framework Education Advisory Board, he keeps on with his contributions with the new Zend Framework 2 and he rambles a lot about QUALITY Zend Framework tutorials on his blog. Rob is fond of writing; his latest PHP-Advent article is "Better Than the Rest" and is also a regular conference speaker, speaking at the likes of ZendCon, PHP North West, PHP|Tek and a whole lots of places.

In the interview Rob answers questions about:

  • How he got started with PHP
  • His advice to beginning PHP developers and ones looking to improve themselves
  • Who he works (IDE, debugging, testing)
  • Some recommended resources to learning and keeping up to date
  • and some of his thoughts about conferences
0 comments voice your opinion now!
community interview roballen zendframework author speaker


Carl Vuorinen:
Controller testing with database fixtures in Zend Framework
November 05, 2012 @ 12:44:31

Carl Vuorinen has a recent post to his site showing you how to unit test your Zend Framework (v1) controllers with the help of database fixtures to provide the test with valid data.

So I started thinking that there must be a way to use fixtures for the database the same way as when testing models with PHPUnit Database extension (PHPUnit_Extensions_Database_TestCase). But since PHP does not have multiple inheritance, we can't extend both Zend_Test_PHPUnit_ControllerTestCase and PHPUnit_Extensions_Database_TestCase. So I started out to create a controller test case class that has support for fixtures the same way as the database test case. I mean, how hard can it be?

He dug into the code for the extension and finally came up with a working solution - an abstract class with "_setup" and "_setupDatabase" methods that create what you'll need to perform your tests. A sample test is included in the post to show you it in action.

0 comments voice your opinion now!
zendframework controller testing database fixture


7PHP.com:
Interview with Matthew Weier O'Phinney - Project Lead of Zend Framework
October 29, 2012 @ 08:58:30

On the 7PHP.com site today they've posted their latest community interview with one of the members of the Zend Framework development team - the lead on the project, Matthew Weier O'Phinney.

In this edition I talked with [Matthew Weier O'Phinney @weierophinney], the project Lead of Zend Framework at Zend Technologies Ltd. [...] Matthew has been a speaker at so many PHP conferences and user groups. He also regularly performs and host webinars, the last one (if I'm not wrong) was about ZF2, which I missed out unfortunately. You will find more details about all those presentations on his personal blog here.

In the interview we get answers to things like:

  • How he got started with PHP
  • When and how he got involved in the community
  • Advice to someone new to PHP
  • Recommended resources and tools
  • and some of his work at Zend and on the Zend Framework
0 comments voice your opinion now!
matthewweierophinney zendframework interview community


Gary Hokin:
An Introduction to Zend Framework 2 for the Zend Framework 1 Developer - Part 1
September 27, 2012 @ 08:41:05

Gary Hokin has posted the first part of a series he's doing to introduce those Zend Framework v1 developers out there to the latest version of the framework, Zend Framework v2.

Having worked with ZF1 for a lot of years, I've been watching the development of ZF2 with interest. I've tried nearly every version, from the heady days of the pre-Skeleton App, right through the betas and release candidates. With the imminent release of ZF2 proper, I thought I would share with you some of the most obvious differences between ZF1 and Zf2. Of course, these are only my opinions. While I've contributed (lightly), I've learned most of my ZF2 knowledge from hanging around in IRC and badgering people. If you want to learn quickly and have no remorse for annoying others, you should too!

He covers three of the main differences between the two, namely the namespacing support to replace the awkward class naming, the module-based approach and how bootstrapping is handled. There's a few code snippets tossed in for clarity and a look ahead to the second part for what's to come.

0 comments voice your opinion now!
zendframework zendframework2 introduction series tutorial


Community News:
Zend Framework Green ElePHPants for Pre-Order
September 25, 2012 @ 11:48:32

If you've been around the PHP community for any length of time, chances are you've seen the ElePHPant stuffed animals that have been floating around conferences and living on developers' desks. Well, the Zend Framework has decided to create some of their own - a more green variety. Pádraic Brady has posted about them.

Blue PHP ElePHPant plush toys are so yesterday. Ben Scholzen (you might know him as DASPRiD on IRC/Twitter) is now taking pre-orders for green Zend Framework ElePHPants. Yes, they are green. Yes, they have "ZF" printed on them. No, they are not a repository of Zend Framework knowledge. We tried really hard, but Intel insists that magical toys from the future are not real. Ben needs to reach a minimum production order of 1000 small ZF ElePHPants and is currently hovering at around 200 after the weekend. If you, your user group, or your pet poodle want one of these, visit Ben's pre-order page for more information.

As of the time of this post, the orders for these elePHPants is at about 190 out of the 1000 needed, so if you'd like to pick some up, get over and put in your pre-order now!

0 comments voice your opinion now!
elephpant green zendframework logo preorder stuffed


Jeune Asuncion:
ZF1.11 + Doctrine 2 + Symfony DI Integration
August 22, 2012 @ 11:09:21

In this new post to his site Jeune Asuncion shows how he integrated several technologies to make for a robust system - Zend Framework (1.11), Doctrine 2 and the Symfony dependency injection system.

Last week, I blogged about looking for a new application framework to use and more importantly the key things that I would want in one. After reading about the Zend framework, Symfony and Laravel and finding myself hesitant to use any one, I thought to myself why not get the best of each framework? So that's what I did.

He shows a bit of the code to get them to all play nicely together using the Zend autoloader to register the other namespaces and creating a Symfony DI container inside of the ZF Bootstrap and providing it as a resource. You can find more of the source involved in the integration on his github account.

0 comments voice your opinion now!
zendframework doctrine symfony di container integration autoload



Community Events











Don't see your event here?
Let us know!


code framework application interview zendframework2 phpunit api composer community testing release development opinion introduction database podcast example series functional language

All content copyright, 2013 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework