Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

BitExpert Blog:
Prophiler PSR-7 Middleware
Oct 27, 2015 @ 10:42:54

On the BitExpert blog Stephan Hochdörfer shares a new tool, a PSR-7 compliant middleware, that allow easy integration with your current application of the Prophiler debugging/profiling tool.

Prophiler is a PHP Profiler & Developer Toolbar which is part of the Phalcon project but can also be used as a stand-alone component, kind of like the Symfony Web Debug Toolbar or Z-Ray. What I like about Prophiler is that on the one hand hand it is super easy to install and on the other hand offers a few nice adapters (e.g. PSR-3 logging or Doctrine integration) out-of-the-box.

The middleware is a simple Composer install away. He includes the code you'll need to make the Prophiler instance and how to hook in the middleware for use. His example uses the Zend Framework Stratigility structure but because it's a PSR-7 compliant package, it can integrate just as easily with any PSR-7 framework/library. He also includes a sample of running a request and mentions the automatic addition of the toolbar to the output.

tagged: prohpiler profiling psr7 middleware integration zendframework stratigility tutorial composer

Link: https://blog.bitexpert.de/blog/prophiler-psr-7-middleware/

Matthew Weier O'Phinney:
On 10 Years at Zend
Sep 21, 2015 @ 17:53:36

Matthew Weier O'Phinney has spent the last ten years of his career working for Zend as a part of their Zend Framework team. In this post to his site he looks back over the years, how it all started and where he is today.

10 years ago, as I write this, I was on a plane from Burlington, VT, to San Jose, CA, where I'd be starting work at Zend Technologies the next day as a PHP Developer.

He talks about where he started out at Zend (the eBiz team) and the kind of work he was given. It was early on that he started working with an internal, new project at the time: Zend Framework. He looks at some of his early contributions to the project and his "trial by fire" when he was asked to help give a tutorial about it at that year's ZendCon. He also mentions some of the people he's worked with along the way and gives thanks to the founding Zend team. Zend Framework was one of the first major frameworks out there and paved the way for the framework-driven environment we find ourselves in now. With Zend Framework v2 it encouraged a component-based system that spread quickly across the entire PHP community. Thank you Matthew for all of your hard work over the years, not just in the Zend Framework ecosystem but in the PHP community as a whole.

tagged: matthewweierophinney zend decade zendframework team development

Link: https://mwop.net/blog/2015-09-19-zend-10-year-anniversary.html

Zend Framework Blog:
Announcing the Zend Framework 3 Roadmap
Jan 23, 2015 @ 11:57:10

The Zend Framework project has a new post to their blog today officially announcing the roadmap for version three of the popular PHP framework.

The most often-asked questions we get around the Zend Framework project include: Where is Zend Framework heading? When will Zend Framework 3 be released? What changes and enhancements should we expect? Since inception, our goal for Zend Framework has been to further the art of PHP and ensure our users concentrate on the business logic of their application rather than wasting time reinventing the plumbing. The plumbing is Zend Framework’s job.

We have built an incredibly powerful framework with Zend Framework 2 that met its key goals of flexibility, consistency and testability. However, the world has changed since ZF2 was released, and the project needs to move with the times. With that in mind, we have gathered feedback from our users and core contributors to map the path forward. Zend Framework 3 will be an evolution from ZF2, concentrating on simplicity, reusability, and performance.

The post lists out a few of the things involved in this roadmap including separating components into individual, versioned projects and embracing the concept and functionality of middleware. If you'd like to get involved or just find out about the latest on this upcoming version, be sure you either join the zf-contributors mailing list or come to the #zftalk.dev channel on the Freenode IRC network.

tagged: zendframework zendframework3 release roadmap

Link: http://framework.zend.com/blog/announcing-the-zend-framework-3-roadmap.html

SitePoint PHP Blog:
Essentials of LDAP with PHP
Sep 26, 2014 @ 09:07:37

On the SitePoint PHP blog today Matthew Setter has written up a tutorial sharing the essentials of PHP with LDAP. He shows how to connect PHP to this industry standard technology and effectively query, update and delete information.

Ever wanted a simple way to store address book style information and network information actually next to any kind of ordered information? If so, then there’s a technology which has been around since 1993, one which despite not having the cool factor of such technologies as Node.js and Go, allows you to do exactly this. It’s called LDAP!

He starts off the tutorial by explaining a bit about what LDAP is (and isn't) for those not familiar with it. He covers some of the basic terminology, pointing you other articles if you need more than just his brief overview. Then he helps you get an LDAP server installed locally (using a package manager, apt-get) and how to verify the install is working correctly. From there he shows how to populate a few records and verify they exist. Following this, he gets to the PHP part of things, showing how to use the Zend Framework v2 Zend/Ldap component to access the server, query records and update/delete them easily.

tagged: tutorial ldap introduction query crud essentials zendframework zendldap

Link: http://www.sitepoint.com/essentials-ldap-php/

Rob Allen:
Using ZF2 Forms with Twig
Sep 23, 2014 @ 09:28:53

Rob Allen has a new post today showing how to integrate Zend Framework 2 forms into a Slim framework based application. He started the topic in a previous post and continues, this time using the Twig templating framework to handle the rendering.

The ZF2 view helpers, formRow and formElement now look like Twig functions, however we don't want to have to rewrite all our ZF2 view helpers into Twig. Fortunately, Twig supports the concept of a undefined function callback is called whenever Twig encounters a function that it doesn't know how to call. We can use this to proxy through to the ZendView system and get it to render the ZF2 view helpers.

He shows how to use this callback functionality and a custom view layer with the Slim-Views component to render the output. He includes a simple Slim example, setting up the custom View class as a parser extension and how to register the callback to invoke Twig.

tagged: zendframework twig render slimframework integration tutorial view

Link: http://akrabat.com/zend-framework-2/using-zf2-forms-with-twig/

PHP library authors: Have you considered to arrange security bug bounties?
Aug 06, 2014 @ 10:39:00

In this new post to Reddit.com Timoh suggests something that could definitely help improve the overall security of the PHP ecosystem - a bug bounty system, providing libraries and projects an easy way to security-related submissions for their code.

To encourage software security research on the open-source PHP libraries we use everyday, I have been brainstorming the possibilities for us, the code authors, to start to offer security bug bounties on the projects we maintain. It is a shame such a few PHP projects encourages security research by offering bug bounties, and I think it doesn't have to be this way.

He describes his ideas for the system including the ability to offer both monetary bounties and other kinds of recognition as well. Comments on the post are largely supportive, agreeing with him that it can definitely help things. He also makes the suggestion of getting frameworks with corporate backings (like Zend Framework and Symfony) to be some of the leaders and be an example to other projects and get them on board. What do you think? Add your own thoughts and suggestions about the project to the mix!

tagged: bugbounty service project library zendframework symfony bounty recognition

Link: http://www.reddit.com/r/PHP/comments/2cpu6v/php_library_authors_have_you_considered_to/

Voices of the ElePHPant:
Interview with Evan Coury
Jul 23, 2014 @ 12:36:25

The Voices of the ElePHPant podcast is back with a new episode of its podcast. This time it's an interview with PHP community member Evan Coury.

The interview is recoded live at this year's Midwest PHP Conference. They talk about Evan's work around Zend Framework and where he sees things going with the project. He also mentions some of the work being put towards Zend Framework v3 (and if there will be many backwards compatibility breaks like there was with ZF2).

You can listen to this latest episode either through the in-page player or by downloading the mp3. If you like what you hear, consider subscribe to their feed.

tagged: voicesoftheelephpant evancoury community interview zendframework

Link: http://voicesoftheelephpant.com/2014/07/22/interview-with-evan-coury/

Community News:
Apigility 1.0.0beta1 Released!
Mar 25, 2014 @ 10:41:03

Zend has officially announced the release of the 1.0.0beta1 of Apigility, their API creation platform making it simpler for developers to get started making APIs, even around existing code.

We are pleased to announce the immediate availability of Apigility 1.0.0beta1! [...] This is our first beta release of Apigility, marking its initial API stability, and providing a solid preview of what to expect for the first stable release. [...] Apigility provides tools for describing and documenting your APIs, both RESTful and RPC. You can indicate the URL that provides a service, what HTTP methods are allowed, what representations (e.g., JSON, HTML, XML) can be provided, how many items to present per page of a collection, and more.

The release goes on to talk about some of the other features of Apigility including the standard of JSON responses, custom validation for incoming data and an implementation of the Swagger UI bundled for documentation of your service. There's also a list of things (with code examples on some) about what's changed in this beta release since 0.9.1. There's also a brief look at the end of the roadmap ahead, with an emphasis on a full, stable release soon.

tagged: apigility api zendframework beta release

Link: http://framework.zend.com/blog/apigility-1-0-0beta1-released.html

Michelangelo van Dam:
Bootstrapping ZF1 application in Apigilty
Mar 11, 2014 @ 10:42:27

Michelangelo van Dam has a new post sharing a method he's come up with for boostrapping Zend Framework v1 components inside of an Apigility-based application.

Apigility is a Zend Framework 2 tool that provides a REST API management interface, which is very useful if you want to build an API. Apigility can directly connect with your database and offer a full REST API for your application, but in most cases you already have an application build with Zend Framework 1.x (ZF1). Let's assume you have incorporated a lot of business logic in this application so it would be a waste not to use it building a rich REST API.

He uses the gitmodules functionality to bring his entire ZF1 application into the Apigility app's structure (or, alternatively, Subversion). He shows how to use Composer to install the actual Zend Framework v1 copy and how to pull in other third-party libraries. He includes the code you'll need to use to create a "ZF2APP_PATH" constant to get to the application path of Zend Framework v2 instance. He then gets into the main part - the actual autoloading and bootstrapping of the ZF1 classes/services. He gives a brief introduction to working with Apigility to make a new service and shows the update to the resource class.

tagged: bootstrap application apigility zendframework2 zendframework

Link: http://www.dragonbe.com/2014/03/bootstrapping-zf1-application-in.html

Mastering Zend Framework:
Gary Hockin’s Maximising Zend Framework 2 Performance Talk (Review)
Feb 28, 2014 @ 10:33:30

From the Master Zend Framework blog there's a new post reviewing a talk from this year's PHPUK (2014) from Gary Hockin, "Maximising Zend Framework 2 Performance".

Whether you’re new to Zend Framework 2, or an old hand (can someone really say they’re an old hand after such a short period of time?) the talk covered a range of tools, tips, and techniques for increasing application performance. This wasn’t an academic run through; it was a talk based on practical, hands-on, experience from Gary’s time as a core ZF2 contributor, and his work at Roave, Yamgo and AdSpruce.

The post talks some about the tools Gary used to benchmark his improvements and some common metrics to be aware of in your own results. Xdebug and Xhprof were also recommended for more introspection into what the application is doing and where the bottlenecks lie.

tagged: phpuk14 zendframework performance tools talk session

Link: http://www.masterzendframework.com/reviews/maximising-zend-framework-2-performance-phpuk14