Brian Swan has a recent post to his MSDN blog about setting up PHPUnit for testing on a Windows Azure platform (as installed via PEAR).After figuring out how to run PHPUnit from the command line in a Windows Azure instance, I did find that a bit more configuration work than I anticipated was necessary. I'm not 100% certain that this is the best way to run PHPUnit in Windows Azure, but it is one way. I'd be interested in hearing better ways to do this.He breaks it up into a few different steps:
Building...
For now I am limiting this vision to just European companies. But the idea that is materializing is for PHP companies to train each other on technology or processes related to their daily business. Liip today received a remote training by Konstantin from KnpLabs on Behat. In January David will give a training for KnpLabs on behalf of Liip about the Symfony2 CMF. For now this will happen remote (we still need to figure out a better setup), because this all happened fairly short notice after talking about...
Here's a more or less simple way to migrate from Subversion to GIT(hub), this includes mapping commits and tags and what not!
AuthorsIf multiple people congtributed to your project, this is probably the toughest part. If you're not migration from let's say Google Code but PHP's Subversion repository, then it's really pretty simple indeed: the username is the email address.I found a nifty bash script to get it done (and adjusted it a little bit):
#!/usr/bin/env bash
authors=$(svn log -q | grep -e '^r' |...
On the VG Tech blog today there's another post related to unit testing (here's one from before) but this time they're talking about mocking the filesystem with vfsStream, a powerful tool that lets you interact with PHP streams as a virtual file system.This article is about how to mock the file system when writing unit tests, and it will be rather code-heavy. [...] PHPUnit is the de-facto standard for unit testing in PHP projects, and this is what we will be using together with vfsStream in this...
Josh Adell recently attended to Raleigh, North Carolina arm of the CodeWorks conference and has posted about some of his experience there (and specifics on each presentation).I had a great time at CodeWorks 2011 in Raleigh this week, put on by the great folks at php|architect. Here is a rundown of the presentations, with some of my thoughts. [...] To all the conference speakers, organizers and attendees, I want to say thank you for a fun and educational experience.The sessions for this stop on the tour...
Popular posts from PHPDeveloper.org for the past week:Joshua Thijssen's Blog: Compatible code: starting with symfony2
NetTuts.com: Wrangling with the Facebook Graph API
Jake Smith's Blog: Callback Filter Iterator in PHP 5.3/5.4
DZone.com: Codeigniter and Object-Oriented PHP: Two Guides
PHPClasses.org: Lately in PHP Podcast Episode 18 - The Debate on Remote Work for Web Developers
DevArticles.com: Singletons in PHP
Elizabeth Naramore's Blog: PHP Internals, Let's Chat About the Future!
Reddit.com: Should I...
PHP does not enjoy the same consistency in error (and exception) handling as other languages,
mostly due to historical reasons and the lack of a formal
specification. But, there are things that you can do to make error handling
saner and easier to maintain.
PHP has multiple categories of errors and exceptions, each with its own handling
semantics within the PHP interpreter. For our purposes, we can classify these
into the following categories:
Fatal errors, like out-of-memory and syntax errors,...
If you've ever wanted to start from scratch and wanted to build your own PHP framework, you might want to take a look at this list. It's a set of thirteen good resources to help you get started and introduce you to some of the basic framework concepts.Frameworks serve as basics for developing a theory, condition and design in broader sense but in the world of web site development, framework means applications that help you in creating something new or something most popular around the web. We have listed...
There's a bunch of really usefull online css tools like css code shrinkers, validators,
sprite generators, px to em calculators just to name a few.
But what I like the
best is SASS and LESS. Continue reading "09.12. 10 good reasons why to learn a css meta language like sass or less"
You may have heard about Composer and Packagist lately. In short, Composer is a new package manager for PHP libraries. Quite a few people have been complaining about the lack of information, or just seemed confused as to what it was, or why the hell we would do such a thing. This is my attempt at clarifying things.
This second part of this post, tentatively titled Use Cases, will be out next week if time allows.What is it?The Composer ecosystem is made of two main parts, both are available on GitHub. The...
On PHPMaster.com today there's a new tutorial that wants to help you "untangle MVC" with the help of the CodeIgniter framework. The tutorial is an introduction to the Model/View/Controller design pattern and how it's implemented in this popular framework.If you want to develop applications with sell-structured, readable code that you can quickly diagnose problems in, then MVC is for you. In this article I'll untangle the mysteries of MVC for you using CodeIgniter, a PHP framework based on the MVC...
In a new post to his blog Ilia Alshanetsky takes a look at PHP's output buffering feature and some interesting things he found when testing some recent code (hint: it has to do with PHP's "interesting" management of the buffer).While profiling our application I came across a a rather strange memory usage by the ob_start() function. We do use ob_start() quite a bit to defer output of data, which is a common thing in many applications. What was unusual is that 16 calls to ob_start() up chewing through...
On the VG Tech blog today there's a new post from André Roaldseth about using PHPUnit to test PHP streams, basing the assertions on the data rather than the functionality itself.Using the memory/temporary stream provided by php:// stream wrapper you can create a stream with read and write access directly to RAM or to a temporary file [using "php://memory"]. This gives you the possibilty to write unit tests that does not rely on a specific file, resource or stream, but rather on data provided by the test...
Volker Dusch has posted his review of a recent release from SitePoint Press - "PHP Masters - Write Cutting Edge Code".The book is solid, well written and covers the most important topics that people need to think about when starting off with PHP. It is one of the few PHP book on the market that you can pass on to your trainees/junior developers without having to "unteach" them half of the taught bad practices afterwards. This is a great achievement in my mind and I'd definitely recommend checking it out...
Here's what was popular in the PHP community one year ago today:PHP North West: PHPNW10: Harrie Verveer: Database version control without pain
LearnComputer.com: PHP Interview Questions and Tips
PHP.net: PHP versions 5.2.15 and 5.3.4 Released!
Jose Anthony's Blog: PHP Code review checklist
Joshua Thijssen's Blog: Top-5 certifications for every PHP programmer
Court Ewing's Blog: A Simple Alternative to Global Registry Dependency
Insidesigns Blog: Create a scalable private messaging application using PHP5...
At some point in our respective programming careers, most of us have
heard that Test-Driven Development (TDD) is what we should be doing.
The TDD thesis is that we write tests (known as unit tests)
that consume the functions, classes, and interfaces of the code that we
intend to write before we write it, and that doing this
improves the quality of our code due to increased foresight and
better ability to catch a specific type of bug known as a
regression, which is the technical term your boss uses for...
While profiling our application I came across a a rather strange memory usage by the ob_start() function. We do use ob_start() quite a bit to defer output of data, which is a common thing in many applications. What was unusual is that 16 calls to ob_start() up chewing through almost 700kb of memory, given that the data being buffered rarely exceeds 1-2kb, this was quite unusual.
I started looking at the C code of the ob_start() function and found this interesting bit of code inside...
php|architect has officially announced their php|tek conference for 2012 and have opened their Call for Papers:The simple answer is to the question "What topics are you looking for" is: anything that helps inspire PHP developers to do their jobs better, more easily, and more efficiently. [...] Most importantly, we do not necessarily look for talks that are about PHP. Some of the most successful presentations over the years have been on products built on PHP (like frameworks) and on technologies that are...
In this new post to Reddit.com, the question is asked "Should I be doing just about everything using REST?" - wondering if their new applications should all sit on top of a web service for their functionality.I'm pretty new to server-side programming, and actually started out with Python/mod-wsgi. From the ground up, mod-wsgi made a lot of sense. The server gets a request, you route the request. It feels like that's where I should start, so that's pretty much what I'm trying to create with PHP (a REST...
If you're a regular reader of PHPDeveloper.org, you know that there's a few articles posted here (almost) daily about what's happening in the PHP world. Unfortunately, this only scratches the surface of the quality content that's out there. In an effort to provide more PHP goodness to the community as a whole, PHP Quick Fix has been launched - a service linking to stories that don't make it on PHPDeveloper.org.All of the stories on PHP Quick Fix (you can also follow it on twitter) are still hand-selected...
|
Latest PHP Tweets
|