Matthew Weier O'Phinney has put together a screencast showing you how to get up and running (a quickstart) with the latest release of Zend Framework 2.One of the exciting features of the newly released Zend Framework 2 is the new module system. While ZF1 had modules, they were difficult to manage. [...] In Zend Framework 2, we've architected the MVC from the ground up to make modular applications as easy as possible. [...] To give you an example, in this tutorial, I'll show you how to install the Zend...
David Müller has a new post to his site today showing why validating URLs with filter_var is a good thing for the security of your application.Since PHP 5.2 brought us the filter_var function, the time of such [regular expressions-based] monsters was over. [With] the simple, yet effective syntax [and] with a third parameter, filter flags can be passed, [...] 4 flags are available [for URL filtering].He shows how to use it to filter out a simple XSS issue (a "script" tag in the URL) and some examples of...
Here's what was popular in the PHP community one year ago today:NetTuts.com: Build Ajax Data Grids with CodeIgniter and jQuery
PHPClasses.org: MODX: A CMS Framework Designed with PHP Developers in Mind
DZone.com: Phar: PHP libraries included with a single file
PHPBuilder.com: Introducing Namespaces for PHP Developers
PHPMaster.com: Introduction to PHP Arrays
Phil Sturgeon's Blog: NinjAuth: The Social Integration Package PHP has been dying for
DZone.com: Practical Google+ Api
Lukas Smith's Blog: My PHP...
Like many people, I upgraded my iPhone to iOS 6 this afternoon. The update for me wasn't all that exciting, being that I'm on the Death Star network, but it was still worthwhile to upgrade for the Do Not Disturb features. Shortly after updating, it seems that the wifi connectivity stopped working for me, as [...]
One of the exciting features of the newly released Zend
Framework 2 is the new module system.
While ZF1 had modules, they were difficult to manage. All
resources for all modules were initialized on each request, and
bootstrapping modules was an onerous task. Due to the difficulties,
modules were never truly "plug-and-play", and thus no ecosystem
ever evolved for sharing modules.
In Zend Framework 2, we've architected the MVC from the ground
up to make modular applications as easy as possible. Within...
There's been a lot of chatter about a recent RFC from Pádraic Brady on the php.internals maling list - his proposal to add native escaping to the PHP core. He shares some of his own thoughts about the proposal in a new post to his site.A short time ago today, I submitted a PHP RFC for discussion which proposes adding an SPL Escaper class and, quite possibly, a related set of functions dedicated to escaping data for output to HTML/XML to PHP: https://wiki.php.net/rfc/escaper. The RFC itself should be a...
Phil Sturgeon has a new post to his site talking about how he added image upload and management support to an application with an easy integration of two packages (pulled in via Composer).To get this extra functionality I added two packages to my composer.json. [...] The first is Upload by Josh Lockhart (who built Slim and started PHP The Right Way). It's currently very basic as it's not been alive long, but for the job I needed to do it worked perfect.The second package is the ImageWorkshop that let him...
In this new post to his site Matt Frost continues his look at using Selenium to test his applications (see the first parts here) and shows how to use the Selenium extension for PHPUnit to run all his tests from one place.So I've taken it upon myself to do a bit of reading and messing around with the Selenium Extension for PHPUnit and I wanted to share a bit of what I learned. Looking around on the internet, I didn't find a whole lot of real good information on the Selenium2TestCase API so I want to...
In case you missed the tweet where it was mentioned, thanks to some work from Clay Loveless, the popular PHP unit testing tool, PHPUnit, can now be installed via Composer.Thanks to this pull request on the project, adding PHPUnit to your project (and its dependencies) are a few simple commands away:The package-composer.json file, coupled with package.xml and the package2composer script that is part of the Conductor package at http://pear.claylo.com/ is all that is needed to update the composer.json file....
In a recent post Miro Svrtan talks about a PHP developer community he started up in the Zagreb, Croatia area, the ZgPHP user group, and some of the lessons he learned in the process.The year 2011 was a great success for developer communities in Zagreb. Although mobile developers started in 2010 with Mobile Monday, web developers were a bit shy and Ruby developers started first, then python meetups started and in the summer few people urged/pushed me to start organizing PHP Meetups. Besides colleagues I...
Chris Risner has posted the first part of his series looking at mobile geolocation in PHP-based Azure applications as hosted on the Windows Azure service.The first article in this mini-series on creating geolocation apps with the backend hosted in Windows Azure Websites is going to be a walkthrough of the PHP code that we'll host in Windows Azure. The PHP site will be simple and expose just a few methods. Prior to getting into the code for the service, we need to setup a new website in Windows Azure and...
Yelp
Proxy Cast
txtemplate
Parse INI
Ratchet.io
Analytics API
The PHPUnit development team announces the immediate availability of PHPUnit 3.7.0, PHP_CodeCoverage 1.2.0, PHPUnit_MockObject 1.2.0, and DbUnit 1.2.0.
Key enhancements in these releases include:
New assertions, for instance ones that operate on JSON data
Redesigned code coverage report
It is possible again to expect (with @expectedException) the generic Exception class. Doing so is still a bad idea, though.
Please note that PHPUnit 3.7 is only supported on PHP 5.3.3 (or later) and that PHP 5.4.7 (or...
Lorenzo Alberton has a new post with an update about a library he's been working on to interface with Apache's Kafka system, "a persistent, distributed, high-throughput publish-subscribe messaging system".Over a year ago I sort of reverse-engineered the protocol, and published a first rudimental library to produce and consume messages with version 0.05. Since then, the Kafka project has evolved a lot, moving from the LinkedIN repositories to the Apache Incubator, gaining traction, committers, features....
The Incredible Hulk (Photo credit: Boogeyman13)
A short time ago today, I submitted a PHP RFC for discussion which proposes adding an SPL Escaper class and, quite possibly, a related set of functions dedicated to escaping data for output to html/XML to PHP.
https://wiki.php.net/rfc/escaper
The RFC itself should be a good read if you want to understand why I'm proposing this but the basics are quite simple. Cross-Site Scripting (XSS) is one of the two most common security vulnerabilities in web...
Danne Lundqvist has a new post today showing you how to install and use XDebug with MAMP, the popular all-in-one LAMP package for OS X.MAMP is a full local server environment including Apache, PHP and MySQL in one package. Anyone feeling at home in *nix systems should feel at home using both OS X and MAMP. [...] As I have helped a few collegues setup Xdebug in MAMP I have discovered that a lot of developers don't do this as they don't know how simple it is. Even seasoned PHP developers use the old...
The latest episode of the /Dev/Hell podcast has been posted today - Episode #19, "Almost an Apology". Hoest by PHP community members Chris Hartjes and Ed Finkler, their special guest this time is Chris Shiflett.After some downtime spent taking mental reps, Chris and Ed are back with a vengeance for one of our best shows. Joining us is Chris Shiflett, PHP fellow and security expert. They talk about how we interact with non-techie members of dev teams, what they're doing with Node, the state of the...
New on PHPMaster.com today there's a tutorial showing you how to work with the Last.fm API from your PHP applications (a REST-based service). Last.fm is a social music site and recommendation service that takes what you already listen to and suggests other artists/songs you might like.If you are building a site for a band or artist and you want to make it more social using Last.fm, it's a must to use their API. In this way artists and fans can become connected and fans can stay up to date on concerts and...
Latest PECL Releases:
stomp 1.0.4
svm 0.1.8
timezonedb 2012.6
msgpack 0.5.2
xcommerce 1.0.3
yaf 2.2.2
leveldb 0.1.0
My current web development environment basically consists of a Macbook Pro running Mountain Lion, PHPStorm 5.0 and Virtual Box running one ore more virtual Ubuntu Servers with everything needed. Correctly setting up a linux guest OS in Virtual Box with shared folders shouldn't be but is sometimes a bit of a headache. (Even though it does have many advantages.) Others choose not to use virtual servers and instead go for AMAMP when using OS X.
MAMP is a full local server environment including Apache, PHP...
|
Latest PHP Tweets
|