Ryan Mauger has written up a new post about an integration he's done using the Twig templating engine (from be Symfony community) with his Zend Framework application to make view handling simpler.Mostly I thought [what Twig offered] were silly things that were not really needed unless you had a team of designers to work with, however, during my exploration, a couple of things occurred to me that I had not considered about templating systems before. One being the enforced separation of concerns they...
Here's what was popular in the PHP community one year ago today:Mike van Riel's Blog: phpStorm, a true delight to work with
Lorna Mitchell's Blog: Accessing the Magento Web API
Emran Hasan's Blog: Quick start on new Facebook PHP SDK (IFrame based)
Alan Skorkin's Blog: What Every Developer Should Know About URLs
Chris Hartjes' Blog: More Awesome Deployment Using Phing
Content with Style: Linkedin and Zend_Oauth
Matthew Weier O'Phinney's Blog: Writing Gearman Workers in PHP
WebReference.com: Encryption...
Rob Allen has a new post today exploring Zend_Paginator and some of the features it has to offer.One area of displaying lists on web pages that I've generally disliked doing is pagination as it's a bit of a faff. Recently, I needed to do just this though as I couldn't delegate it as my colleague was too busy on other work. As a result, I thought that I should look into Zend_Paginator this time. Turns out that it's really easy to use and the documentation is great too.He includes some sample code to set...
In a new post to his blog today Philip Norton has made his announcement about this year's PHP North West Conference 2011 happening October 7th through 9th in Manchester, UK.I have attended the last 3 PHPNW conferences and they have all been of a very high standard in virtually every way. [...] The conference will be split over two days on the 8th and 9th of October with 3 full tracks on the Saturday and 2 tracks on the Sunday. There will also be lots of coffee breaks and there is usually a free bar in...
New from the Script-Tutorials.com site there's a guide to getting a modern looking animated login system working on your PHP application. It uses jQuery to do some of the "modern" bits when the user logs in.Today we will continue PHP lessons, and our article will about creating modern php login system. Possible you already saw similar ways to display login forms, and today we will repeat this by self. In result - it will some small element in your page layout, and after clicking on it - will appear some...
James Cohen has a new post to his blog today looking at some of the built-in functionality that PHP has to work with dates and times including simple things like strtotime and the DateTime feature.A lot of people ask questions relating to date and time in PHP. Here are some answers to the most commonly asked questions and common mistakes.He covers the differences between working with dates in strtotime, worrying about timezone settings and compares the strtotime/DateTime methods for formatting and...
PHP MySql Authentication Class
Form Validation Easy
Simple LDAP
DB table extractor
Data Format
Easy Array To XML
Uploader Class
Simple Template System
icRouter
Multi-format countdown
String Obscure
Super Globals Access Interface
On the Ibuildings techPortal today they've posted the results of their Ibuildings challenge where the developer had to create a script able to play "Four in a Line" based on an abstract Player class provided.Four in a Line as game has been mathematically solved and the advantage lies with the player taking the first turn. To level the playing field, we allowed each player to fight against all the others; in this way, any player had the chance to begin with the first move advantage playing against all the...
Enrico Zimuel as a new post to his blog today talking about his exploration of a Zend Framework bug related to the JSON handling of the Zend_Json component. The issue was related to the conversion of XML to JSON but it only happened in specific instances.As you can see the bar value, of the a element [in the example code], is not represented in JSON. This issue comes also with other XML documents, and in general when an XML node has a single character data child, any attributes are lost.In tracking down...
On the Web Developer Juice blog there's a recent post, the first part in a series looking at one of the more handy features of the recent releases of PHP - the magic functions (some which were added in the PHP 5.x series).There are some reserved function names in PHP class starting with __ (double underscore). These are __construct, __destruct, __isset, __unset, __call, __callStatic, __sleep, __wakeup, __get, __set, __toString, __set_state, __invoke and __clone. You cannot use these functions to serve...
I'm happy to report that Gimme Bar
has been running very well on MongoDB
since early February of this year. I previously posted on some of the
reasons we decided to move off of CouchDB.
If you haven't read that, please consider it a prerequisite for the
consumption of this post.
Late last year, I knew that we had no choice but to get off of CouchDB.
I was dreading the port. The dread was two-fold. I dreaded learning a new
database software, its client interface, administration techniques, and
general...
I spent Saturday working the registration table at DrupalCamp Nashville. Aside from getting to be a bunch of great people, I got to spend most of the day sitting next to Adam Kalsey of Tropo. It seems that every time I turn around these days I'm running into Tropo at PHP events. So I decided to play around with their API to see what all the fuss was about.
In my previous post, Simple Object Iterators in PHP, we discovered how to iterate over array items defined within an object using a foreach loop. However, what if you need to iterate over items which are not stored in an array, e.g. records from a database or lines of text read from a file?For the following example, we'll create a class which:counts the number of users who are logged in to a web application by retrieving records from a databasecreates a collection of a€ousera€¯ objects which can be...
The Voices of the ElePHPant podcast has posted their latest episode - an interview with Bulat Shakirzyanov.Cal's "three questions" for Bulat revolve around his work with unit testing:
How do you counter the arguments that unit testing takes too much time or their boss/client won't give them the time to learn or practice testing?
Do you advocate 100% unit test coverage - if so, why (and if no, why not)?
Why is it important for developers to mock native PHP commands in their unit tests?
You can listen to...
In a new post to his blog Chris Hartjes shares a technique he figured out for testing web services in Zend Framework 1.x - in his case, a remote application he wanted to mock out with test doubles that would give different responses based on the parameters given.Reading the existing PHPUnit documentation did not provide me with enough hints on how to solve this particular problem, so while I dug around duckduckgoing for a solution I asked Twitter for help. One blog post and 3 tweets later, I had the...
Gonzalo Ayuso has posted the results of some testing he's done in using stored procedures in a PHP application. He compares the run time of two different scripts, one using prepared statements and one without, to see which would perform better in the long run.Last week I had an interesting conversation on twitter about the usage of stored procedures in databases. Someone told stored procedure are evil. I'm not agree with that. Stored procedures are a great place to store business logic. In this post I'm...
Latest PECL Releases:
rrd 1.0.3
timezonedb 2011.7
gmagick 1.0.8b2
APC 3.1.8
As I recently noted, we have teamed with Adobe to deliver a solution for developers to rapidly deliver native, connected mobile applications. This joint solution based on Adobe Flash Builder, Zend Studio and Adobe AIR enables users to use a common code base and target multiple devices including iOS, Android and Blackberry. Passed are the days where you have to learn Objective-C, Java and other native frameworks. A recent research report noted that the # of Mobile app downloads will reach 44 billion by...
If you're attending this year's Dutch PHP Conference, they've just posted an important announcement about the conference social:The conference social will now take place at a venue called ClubNL, which is also in central Amsterdam and within easy walk from the Amsterdam main train station. Please remember to hold on to your conference badge, as you will need it to gain access to the event. For more details check out the updated social page on our website. We are hoping to see you all there!There's still...
Phil Sturgeon has put out a call for volunteers about running some benchmarks on the wide range of PHP frameworks out there. He wants set up a "Benchamrks 2011" event that gives all of the frameworks their fair share at putting up good numbers in their most optimized fashion.Yesterday Dan Horrigan (another PHP framework user and developer) suggested we all have a go at "Benchmark 2011". A chance for every framework developer or interested party to take their framework of choice, make a hello world and...
|
Latest PHP Tweets
|