PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 3241 to 3260 of 6889

Testable Code: Rockstar Edition

Testable Code: Rockstar Edition
Saying "yes" is my default response when a friend asks for my support. But when my Carola KAhntopp asked me a while ago to participate in a presentation about presenting (meta alert!) at this year's PHP @ FrOSCon I committed myself to help without knowing what I would be getting myself into. The title of Carola's presentation, "PHPopstars", was a play of words on the reality television franchise Popstars. The idea was that there were five "finalists" (Kore Nordmann, Tobias Schlitt, Judith Andresen,...

Building a proof of concept? Try Twitter

Building a proof of concept? Try Twitter
The journey from idea to mature software typically follows three very high level stages: Proof of Concept Evolve Mature and maintainEach stage will involve the usual development concerns (analysis, specification, design, implementation, integration, stage & tests) with all the corresponding artefacts (stories, acceptance criteria, points, etc.) involving sprints, scrums and whatever other rituals in your culture. The concerns at each stage can also be broken down further. For example, design will...



Decal CMS Blog: Testing your website before launching: how to let content drive design (Part 1)

Decal CMS Blog: Testing your website before launching: how to let content drive design (Part 1)
New from the Decal blog today there's a general post about testing, not writing tests for your code but testing methods for your site as a whole (like A/B testing). This is the first part of a series.For a long time, we here at Working Software have been strong believers in the "content precedes design" philosophy, as famously espoused by Jeffrey Zeldman and summarised here on UX Myths. [...] We are relaunching this website so we'd gone through the process of creating our "content first" wireframe using...

Script-Tutorials.com: Watermark processing on images using PHP and GD

Script-Tutorials.com: Watermark processing on images using PHP and GD
On the Script-Tutorials blog today there's a new tutorial posted showing you how to easily add watermarks to your images dynamically, either as a part of a cache generation or on upload.I will show you how to use GD library. And, main task today is adding watermark to image and generate result as PNG image into browser. We will using PHP and GD library. This is nice library to work with images at server side. Also (as additional tasks) I will draw little frame over image and will draw some text. Between,...

Lars Tesmer's Blog: What My Co-Workers and I Learned When Trying to Write Unit Tests for PHPUnit

Lars Tesmer's Blog: What My Co-Workers and I Learned When Trying to Write Unit Tests for PHPUnit
Lars Tesmer and his coworkers have been working on improving their development skills lately, specifically related to unit testing. In his latest post he shares some of what they've discovered along the way.The plan was to try and write as many tests as we could for the Constraint classes PHPUnit uses to implement its assertions. [...] Well, our plan didn't work out that way, we didn't really succeed in writing a considerable amount of unit tests. However, it still was a valuable experience, as it turned...

Matt Farina's Blog: SplFixedArray, An Underutilized PHP Gem

Matt Farina's Blog: SplFixedArray, An Underutilized PHP Gem
Matt Farina has a new post today looking at an "underutilized gem" he's found in the offerings of the Standard PHP Library (SPL) - the SplFixedArray.Arrays in PHP are not arrays per the typical array data type. Instead, as Matt Butcher recently pointed out arrays in PHP are similar to hashes in other languages. This can be a very important point to know when tracking down bugs in code and to programmers coming to PHP from other languages. But, what if we wanted something like a traditional array data...

Marco Tabini's Blog: The easiest way to add unit test to your application

Marco Tabini's Blog: The easiest way to add unit test to your application
In a new post to his blog Marco Tabini offers some suggestions on unit testing - not really a tutorial on how to it, more of an "easy way in" to introducing it to your development process.Stopping development for weeks while you figure out how to add unit tests to cover your entire codebase is simply something that cannot be done (at least, not if you want to keep your job), no matter what future benefits it might bring. The good news is, adding unit testing to your existing project only takes five...

Dependencies management in PHP projects

Dependencies management in PHP projects
Talking in the Web Species blog today about Dependencies management in PHP projects: Rarely a project lives by itself, especially in the days of frameworks. Furthermore, there are a lot of great open source libraries you might want to use to save time. But all of this raises a new problem - how could we manage all those dependencies. Here are some thoughts on this problem and how you might want to solve it; without shooting yourself in a foot. Which is commonly known as DLL Hell. Read the full article here

Kevin Schroeder's Blog: Why PHP?

Kevin Schroeder's Blog: Why PHP?
Kevin Schroeder has a new post to his blog today asking "Why PHP?" - not so much a "why you should chose PHP for your development", more of a why PHP is the way it is.Today on twitter there was a conversation going on about the responsiveness of the core PHP developers to PHP users. [...] This post isn't necessarily to correct perceived errors, to stand behind correct statements, or to state what I believe the problem is. Rather, it is to add something to the conversation that I don't think I've seen...

Site News: Popular Posts for the Week of 09.09.2011

Site News: Popular Posts for the Week of 09.09.2011
Popular posts from PHPDeveloper.org for the past week:rooJSolutions Blog: Watch-out PHP 5.3.7+ is about.. and the is_a() / __autoload() mess. Amazium Blog: PHP in the Dark: Input/Output Lars Tesmer's Blog: PHPUnit: Better Syntax for Expecting Exceptions CodeIgniter.com: Amazing Progress Report & Addition of IRC to CodeIgniter.com Brian Moon's Blog: Check for a TTY or interactive terminal in PHP Christian Schaefer's Blog: Beware of the timezone! Working with PHP DateTime & Doctrine for MongoDB Lukas...

ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony

ServerGrove Blog: Deploying Symfony2 Projects on Shared Hosting with Capifony
The ServerGrove blog, a hosting provider whose services include shared hosting, has posted a guide to help you deploy to shared hosting with Capifony, a Symfony-based tool for use with Capistrano.This article is meant to help you configure and deploy your projects developed with Symfony2 into a Shared Hosting environment, so if you need to deploy using capifony on a VPS, please read this article.You'll need ssh access to the server to get things set up for the deployment as well as a local environment...

PHPBuilder.com: PHP Simple HTML DOM Parser: Editing HTML Elements in PHP

PHPBuilder.com: PHP Simple HTML DOM Parser: Editing HTML Elements in PHP
On PHPBuilder.com today there's a new tutorial from Vojislav Janjic about using a simple DOM parser in PHP to edit the markup even if it's not correctly W3C-formatted - the Simple HTML DOM ParserSimple HTML DOM parser is a PHP 5+ class which helps you manipulate HTML elements. The class is not limited to valid HTML; it can also work with HTML code that did not pass W3C validation. Document objects can be found using selectors, similar to those in jQuery. You can find elements by ids, classes, tags, and...

aY The easiest way to add unit test to your application

aY The easiest way to add unit test to your application
Unit testing shouldn't be hard. In fact, given its usefulness, it should be easy and pleasant-a tool that every developer would never want to do without. And yet, I see programmers (and, more frighteningly, systems architects) struggling with it constantly. In many cases, they are saddled with large codebases that have never seen any tests whatsoever on one hand, and the fact that a recent changes has caused their entire system to crap out on the other.The unfortunate thing is that most aoexpertsa will...

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component
On his blog today Jakub Zalas has posted a tutorial he's written up about using dependency injection in PHP with the Symfony2 dependency injection component (DIC).Symfony's DependencyInjection component is a PHP implementation of a Service Container, or as others like to call it, a Dependency Injection Container (DIC). The component also provides useful tools for handling service definitions, like XML loaders or dumpers. If you want to learn more about the dependency injection or the dependency injection...

Joe Devon's Blog: How to get your talk accepted, experiences on the advisory board of Semtech & Zend

Joe Devon's Blog: How to get your talk accepted, experiences on the advisory board of Semtech & Zend
As a result of the ZendCon advisory board for this year's event, Joe Devon has posted a guide that wants to help you get your talks accepted to conferences in the future (both PHP-related and not).For those who don't know what an advisory board is, conference organizers get loads of proposals and need help deciding who should speak. So they ask others in the industry to provide some feedback. It was quite a learning experience.He talks some about the "speaker backlash" that comes from being rejected, a...

Symfony Form: Extract Values

Symfony Form: Extract Values
I had to look deep into Symfony 1.4 code this morning as I was trying to get a field's value. Form values come from different sources: default values, record values (when editing, for example), original POST values and clean POST values. So when is each available and how do we get it? Get the values by type Default values are what you will be presented with when you display an empty form. Get all values using $form-getDefaults() or a single value using $form-getDefault($name). Record values, whichAare...

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:Smashing Magazine: Upcoming Web Design and Development Conferences in 2010 Dhiraj Patra's Blog: Getting Started with iPFaces PHP Mobile Application Framework Zend Developer Zone: Getting started with CouchDB : meet PHP on Couch CodeForest.net: Key/value tables and how to use them in PHP and MySQL Mike Bernat's Blog: The Problem with Wordpress and Drupal Chris Roane's Blog: Should PHP web programmers go to college? NETTUTS.com: Understanding...

Community News: PHP version control to move to git

Community News: PHP version control to move to git
A little while back, the PHP development group posted a survey of developers asking them which version control system they'd like to see the PHP project use. By an overwhelming margin, git has won and things are already in motion to move parts of the project away from subversion.In his mailing list post, David Soria Parra explains: After 2 weeks of voting and discussion, I closed the votes today. The results are fairly straightforward. Most of the users want to move to a decentralized version control...

Latest PHP Tweets