Michael Nitschinger has another post that'll interest the Lithium framework users out there - how to create custom finders to help in code reuse for database requests.Finders assist you with often-used database queries so you don't have to write them over and over again. Out of the box, Lithium provides you with a bunch of them: all, first, count list and "magic finders like" findById or findFirstById. How these are constructed in the core is not relevant for now, but Lithium provides you with a...
In a new post to the "PHP on Windows" section of DZone.com, Giorgio Sironi looks at another testing tool to add to your arsenal - PHPSpec, a behavior-driven development testing tool similar to Ruby's RSpec.Behavior-Driven Development can be seen as an evolution of Test-Driven Development, stricly in its outside-in version and with a refined language. In the case of the tool I'm reviewing today, BDD is implemented with code instead of with textual feature files (e.g. written in Gherkin) like in Behat....
Popular posts from PHPDeveloper.org for the past week:Elated.com: Object-Oriented PHP: Working with Inheritance
Zend Developer Zone: Caching of Zend Framework application configuration file
Box UK: Unboxing: Silex
JavaWorld: Web-less PHP: Command Line PHP
Christian Weiske's Blog: How to integrate PHP_CodeSniffer with Git repositories?
NetTuts.com: Easy Authentication with CodeIgniter
Jason Gilmore's Blog: Thirteen Zend Framework Tutorials
Community News: PHP Sadness - "Things in PHP that Make Me Sad"...
This July I am going to present at OSCON in Portland again:Testing LAMP ApplicationsMost web applications are changed and adapted quite frequently and quickly. Their environment, for example the size and the behaviour of the user base, are constantly changing. What was sufficient yesterday can be insufficient today. Especially in a web environment it is important to monitor and continuously improve the internal quality not only when developing, but also when maintaining the software.Packed with...
Imagine you visit a web site and are instantly and automatically logged in.
Without filling in username and password in a login form.
Without filling the OpenID field and clicking 3 times.
Without clicking the button of your browser's autologin extension.
Without a single cookie sent from your browser to the server.
Yet, you authenticate yourself at and get authorized by the web server.
Yes, this is possible - with SSL client certificates.
I use them daily to access my self-hosted...
A while back we posted about a series of articles Giorgio Sironi was doing about some of the more practical applications of testing patterns in PHP unit testing. He' been building on the series ever since and has lots of great patterns you can use to more correctly structure your testing practices.The current list includes:
Test Strategy: Scripted Test
Design for Testability: Dependency Injection
Fixture Setup: Delegated Setup
Fixture Teardown: Automated Teardown
Test Double: Mock Object
Derick Rethans has posted the second part of his look at translating twitter as a part of his PHP-GTK Twitter client Haunt. Because of the deprecation route Google chose for its translation API, he needed a change to another service - the Bing Translation API.A while ago I wrote in an article about translating tweets in my client Haunt. For the translating itself I was using the Google Translate API, which has sadly be deprecated. Evil after all I suppose. I've now rewritten my translation code to use...
My final post in my Job Search series.A It's short and simple.
Employers:A Don't aoBait and Switcha on job interviews.
Multiple times during this job hunt, I've had companies contact me, sounding very excited to have me, to talk to me about specific position(s) that they'd be interested in me taking.
Then, at some point in time, usually after both sides had spent a long time (and in some cases having flown me out, or having long in person interviews), the rug was pulled out from under me.A Suddenly the...
Rafael Dohms has posted a wrapup of this year's php|tek '11 conference and has included some of his thoughts about the "trending technologies" he saw during his time there.Another edition of php|tek has come and gone and this year some very amazing topics came into view. The conference itself was once again a great experience, great people, incredible speakers, lots of activities and incredible hack-a-thons and unconference sessions.Topics he noticed coming to the forefront at this year's event...
The Zend Framework team announces the immediate availability of Zend Framework
1.11.7, our seventh maintenance release in the 1.11 series.
1.11.7 includes more than 20 bug fixes and may be downloaded from the
Zend Framework site .
As a part of this year's php|tek conference, the folks at php|architect once again put together their choices for the "Impact Awards", a special recognition for projects that have really made a mark over the last year in a few different categories.As part of the grand finale of php|tek '11, Keith Casey announced the winners of the first annual php|architect Impact Awards. These awards are selected by the subscribers of php|architect magazine. They represent the projects that have had the most impact on...
On PHPBuilder.com today Jason Gilmore has posted a tutorial showing you how to use the PEAR HTML_Table component to quickly and easily display tabular information on your site.Because the task [of building tables] is so commonplace, personally I prefer to treat it like stamping out a widget, and rely on a drop in solution. While several such standardized solutions are available, I generally prefer to use HTML_Table, a great PEAR package which makes tabular data presentation a breeze. In this tutorial...
Here's what was popular in the PHP community one year ago today:Chris Hartjes' Blog: Testing Controllers Hiding Behind Zend_Auth
RamonLechuga.com: PHP Error Handler, Tracking your project bugs
Cal Evans' Blog: Bing Search API wrapper for PHP
Symfony Blog: The State of Symfony 2 Online Conference
Raphael Stolt's Blog: Growling PHPUnit's test status
PHPBuilder.com: 10 Easy Solutions for PHP String Manipulation
Ibuildings Blog: Integrating PHP And Java
Jozef Chuťka's Blog: Image Caching With PHP...
Freek Lijten has posted a great introduction to using OAuth in PHP via the PECL OAuth package.If you're a webdeveloper and haven't heard of OAuth yet, you've been living under a rock. Apparently you moved though as you're reading this. In this article I'll try to explain the concept behind OAuth, give a quick overview of the technique behind it and give a real-world example using the Twitter API and a PECL package called OAuth.He introduces you to some of the concepts behind OAuth, what it stands for and...
Another edition of php|tek has come and gone and this year some very amazing topics came into view. The conference itself was once again a great experience, great people, incredible speakers, lots of activities and incredible hack-a-thons and unconference sessions.
Cloud computing is reaching a level of maturity in the technology market as a whole, finally finding its place and purpose and dropping the aosilver bulleta tag. This seems to reflect on the language as well and many sessions revolved around...
On the Zend Developer Zone there's a new post wrapping up this year's php|tek conference that's just finished in Chicago.Last week PHP developers from around the world converged on Chicago, IL - US, for the 7th annual php|tek conference. Over the course of three and a half days there was a lot of learning, sharing, networking, and all the other usual stuff that goes on at these types of events. As usual, the conversations were great, the food was edible and the wifi sucked. Along the way though, new...
PHPClasses.org has posted their latest episode of their "Lately in PHP" podcast series, Is PHP 5.4 really coming soon?On the episode 12 of the Lately in PHP podcast, Manuel Lemos and Ernani Joppert discuss the latest developments and what is still stalling the progress of the developments needed to make PHP 5.4 happen.They also have a bit of discussion about which browser is better for development - Chrome or Firefox (and the places Chrome might be lacking). You can listen to this latest episode either...
Last month Kevin Schroeder spoke at Atlantic Canadian PHP User Group as part of his Northeast User Group tour. My friend Pete MacIntyre recorded the whole thing. Click on in a take a seat while I find the links.
In this new post to his blog Robert Basic has a review of a book from php|architect (by Matthew Turland), "Guide to Web Scraping with PHP".It took me a while to grab myself a copy of Matthew Turland's "Guide to Web Scraping with PHP", but a few weeks ago a copy finally arrived and I had the pleasure of reading it. [...] My overall impression of the book is that it was worth the time and I'm really glad that I bought it. Matthew did a great job explaining all the tools we have at our disposal for writing...
Juozas Kaziukenas has a new post to his Web Species blog about using "lazy evaluation" in PHP - loading the resources you need for execution and evaluation only as you need them, not all up front.Recently I needed to process a huge array of data and because of PHP's somewhat inefficient variables and especially arrays that was resulting in "out of memory" errors. However, I couldn't use any other tools than PHP so was forced to come up with a solution implementation in it. Here is how I solved it using...