PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 2621 to 2640 of 6889

Brian Swan's Blog: Running PHPUnit in Windows Azure

Brian Swan's Blog: Running PHPUnit in Windows Azure
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...

.EU PHP company knowledge exchange

.EU PHP company knowledge exchange
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...

From Subversion to GIT (and beyond!)

From Subversion to GIT (and beyond!)
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' |...

VG Tech Blog: Mocking the File System Using PHPUnit and vfsStream

VG Tech Blog: Mocking the File System Using PHPUnit and vfsStream
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's Blog: Codeworks '11 Raleigh Rundown

Josh Adell's Blog: Codeworks '11 Raleigh Rundown
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...

Site News: Popular Posts for the Week of 12.09.2011

Site News: Popular Posts for the Week of 12.09.2011
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...

Merry Error Handling

Merry Error Handling
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,...

Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework

Wokay.com: 12+ Tutorials for creating PHP5 MVC Framework
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...

09.12. 10 good reasons why to learn a css meta language like sass or less

09.12. 10 good reasons why to learn a css meta language like sass or less
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"

Composer: Part 1 - What & Why

Composer: Part 1 - What & Why
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...

PHPMaster.com: Untangling MVC with CodeIgniter

PHPMaster.com: Untangling MVC with CodeIgniter
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...

Ilia Alshanetsky's Blog: PHP's Output Buffering

Ilia Alshanetsky's Blog: PHP's Output Buffering
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...

VG Tech Blog: Unit Testing with Streams in PHP

VG Tech Blog: Unit Testing with Streams in PHP
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's Blog: Book Review: PHP Masters

Volker Dusch's Blog: Book Review: PHP Masters
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...

Site News: Blast from the Past - One Year Ago in PHP

Site News: Blast from the Past - One Year Ago in PHP
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...

Integration Testing

Integration Testing
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...

PHP's Output Buffering

PHP's Output Buffering
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...

Community News: php|archtect Announces php|tek 2012 (and Call for Papers)

Community News: php|archtect Announces php|tek 2012 (and Call for Papers)
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...

Reddit.com: Should I be doing just about everything using REST?

Reddit.com: Should I be doing just about everything using REST?
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...

Community News: Packing more PHP News in your day with PHP Quick Fix

Community News: Packing more PHP News in your day with PHP Quick Fix
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