PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
Displaying news posts 4701 to 4720 of 6889

Mayflower Blog: Creating coding standards for PHP_CodeSniffer

Mayflower Blog: Creating coding standards for PHP_CodeSniffer
On the Mayflower blog today there's a new tutorial posted about creating coding standard "sniffs" for the PHP_CodeSniffer tool. A "sniff" is what defines the rules for your coding standards to follow (like "curly braces after function definitions should be on the next line" kinds of things).In some cases the pre-installed coding standards like PEAR or Zend might not be sufficient for our current project or we want to deviate. This is the moment when we want to be able to create a custom one that fits our...

Ibuildings techPortal: Win A Ticket to DPC11!

Ibuildings techPortal: Win A Ticket to DPC11!
The Ibuildings techPortal has announced a contest today where they're giving away a free pass to this year's Dutch PHP Conference.I'm wildly excited to announce that we have a ticket to give away for the Dutch PHP Conference 2011!! The conference is entirely English-language (although you will hear many languages spoken in the hallways!), and takes place in Amsterdam between 19th and 21st May 2011. The schedule is online now, and it promises three days of really excellent technical content from some of...

php|architect: Creating RRD graphs in PHP

php|architect: Creating RRD graphs in PHP
On the php|architect site today there's a new tutorial from Joshua Thijssen about using RDD graphs in PHP. RDD graphs are commonly used in dashboard monitoring applications for everything from web servers to network traffic. Joshua introduces you to the topic and shows you how to use the extension in a sample script.You may not be familiar with the term RRD graph, but if I show you one, you probably recognize them instantaneously. They are used to plot all kind of data against time in a very easy way...

PHPBuilder.com: Using the Factory Pattern in PHP Applications

PHPBuilder.com: Using the Factory Pattern in PHP Applications
On PHPBuilder.com today, there's a new tutorial posted about using one of the more well-known design patterns in your PHP applications - the Factory Pattern. Design patterns are repeatable methods for doing common tasks in a "best practices" sort of way.In this article you will learn how to use the factory pattern design in your PHP application to construct different objects for interrogating a database (books) and displaying the records from a table (bookstore) [...] The essence of the factory method...

PHPUK 2011 Talk: Beyond Frameworks

PHPUK 2011 Talk: Beyond Frameworks
I've just finished giving my talk at this year's excellent PHP UK 2011 conference, on how to use code frameworks like Zend Framework and Symfony without them holding your code hostage. Here are my slides from the talk: Beyond Frameworks View more presentations from Stuart Herbert This talk is a follow up to my successful PHPUK 2009 about what it can be like to live with frameworks when you do product development. Looking back on that talk now, it's interesting to see how some of the themes from two...

Fabian Schmengler's Blog: Anonymous function calls in PHP

Fabian Schmengler's Blog: Anonymous function calls in PHP
Fabian Schmengler has a new post today looking a using anonymous function calls in PHP. He relates to to another popular language that allows for dynamic anonymous functions - Javascript.Anonymous function calls are a well-known pattern in JavaScript but there are also use cases in PHP where they make sense. Of course PHP 5.3 with its Lambda Functions is required!He includes several little code snippets showing how the anonymous functions work including the "use" keyword functionality that lets you...

Brief introduction to the Class Interface Size metric

Brief introduction to the Class Interface Size metric
This blog post will give you a brief introduction into the Class Interface Size metric, as it is calculated by the static code analysis tool PHP_Depend. The Class Interface Size or CIS metric is measure of the public services that a class provides. This metric was orginally defined in the QMOOD model [1] by Bansiya & Davis. The orginal version of the CIS metric was defined as the number of public methods that a class provides. Each of these methods can be seen as a service where surrounding...

Michael Nitschinger's Blog: Understanding the Lithium Router - Part 2

Michael Nitschinger's Blog: Understanding the Lithium Router - Part 2
In his latest post Michael Nitschinger extends his first look at the Lithium framework's routing system with part two of his series - creating some unit and integration tests to help you understand how the various parts work.Routes play an essential role in your request/response-cycle and therefore should also be tested like any other component that you develop. As the Lithium routing infrastructure also consists of classes and methods, we can run unit and integration tests against them.Some of the tests...

Why Recruiters Are Bad For Your Career

Why Recruiters Are Bad For Your Career
At some point or another, every technical person will conduct a job search. And either by design or accident, they will encounter the nemesis of job searching: The Recruiter. These individuals are employed by companies whose sole purpose is to serve as an intermediary between job seekers and potential employers. Their marketing literature will say [...]

Site News: Popular Posts for the Week of 02.25.2011

Site News: Popular Posts for the Week of 02.25.2011
Popular posts from PHPDeveloper.org for the past week:SpeckBoy.com: Getting Started with CRUD In PHP Web Builder Zone: Can you use PHP without frameworks nowadays? StackOverflow.com: Optimizing Kohana-based Websites for Speed and Scalability NetTuts.com: Why You're a Bad PHP Programmer Zend Developer Zone: Podcast: Interview with Mike Pavlak WebSpeaks.in: Learn Simple Method Chaining in PHP Gonzalo Ayuso's Blog: Speed up page page load combining javascript files with PHP Najaf Ali's Blog: Why PHP is...

Win A Ticket to DPC11!

Win A Ticket to DPC11!
I'm wildly excited to announce that we have a ticket to give away for the Dutch PHP Conference 2011!! The conference is entirely English-language (although you will hear many languages spoken in the hallways!), and takes place in Amsterdam between 19th and 21st May 2011. The schedule is online now, and it promises three days of really excellent technical content from some of the leaders of the PHP Community from Europe and beyond. The tickets are on sale already; bookmark this link in case you don't win...

What if PECL/mysqlnd_ms does not implement failover?

What if PECL/mysqlnd_ms does not implement failover?
Implicit and automatic connection failover done by the driver is broken by design, correct? Should PECL/mysqlnd_ms implement automatic failover? Today Johannes showed me an IRC snippet about TAF (Transparent Application Failover). Maybe, I fail miserably but I don't see a need for automatic failover in a master slave replication loadbalancing plugin. Let the application do it. In the end, this is also what TAF does - via a callback. Say you run a query. The master slave load balancing plugin...

Community News: Dutch PHP Conference - Updates to the site and the schedule

Community News: Dutch PHP Conference - Updates to the site and the schedule
The Dutch PHP Conference has posted an update about the conference today including changes to the schedule and how its represented on the site.t has been about two weeks since the schedule was published and ticket sales started, but that doesn't mean we haven't done anything in the meantime! There have been a number of updates on both the site and the schedule.There's five new talks that've been added to the schedule including Paul Matthews' presentation on Solr, Chris Jones talking about high...

NetTuts.com: Create your First Tiny MVC Boilerplate with PHP

NetTuts.com: Create your First Tiny MVC Boilerplate with PHP
If you ever find yourself in need of a basic MVC structure for your application but don't want to get involved with a full framework to do it, you should try out this new screencast from NetTuts.com. It shows you the creation of a simple "tiny MVC" implementation.It's important for me to note that I'm not advocating that you shouldn't use large frameworks. They absolutely have their places, and I use them often. That said, there are definitely times when they can be overkill for smaller projects. When...

Cal Evans' Blog: Six ways to be a better client for your developer - Point 8

Cal Evans' Blog: Six ways to be a better client for your developer - Point 8
Cal Evans has posted the eighth tip in his six-tip series (but who's counting) about how a client can coordinate better with a developer and make a better relationship for the project. In this new tip, he suggests that the client "own it".No, I'm not talking about own it as in Point 7 - "Do your part", I mean make sure that at the end of the project, you own the project, not your developer.He mentions two of the aspects you, the client, will need to worry about once the last line of bug free code has...

Creating coding standards for PHP_CodeSniffer

Creating coding standards for PHP_CodeSniffer
When our project is supervised by a continous integration platform, we are (hopefully) using static code analysis tools. One of the best for analysing PHP code is PHP_CodeSniffer which integrates fine into systems like PhpUnderControl, Hudson or Bamboo. But in some cases the pre-installed coding standards like PEAR or Zend might not be sufficient for our current project or we want to deviate. This is the moment when we want to be able to create a custom one that fits our special needs. In this article I...

Christian Schaefer: Using Zend Framework components in a Symfony2 project

Christian Schaefer: Using Zend Framework components in a Symfony2 project
On one of the moreaumainterestingly titled blogs, Christian Schaefer has posted about how he integrates Zend Framework components into his symfony2 projects. Click on in, I'll give you a link to the totally safe for work but humorously titled blog where you can read the post for yourself.

Lorna Mitchell's Blog: PHP Days and PHP Unconference Europe

Lorna Mitchell's Blog: PHP Days and PHP Unconference Europe
For those that weren't able to make it to either the PHP Unconference Europe or the PHP Days training that followed, Lorna Mitchell has posted her retrospective of the two events, briefly covering her experiences as both an attendee and speaker.I spend most of the last week or so over in Manchester for a combination of excellent PHP-related events: PHP Unconference Europe on Saturday and Sunday (with a rather excellent warm-up party on Friday night!), followed by the PHP Days training on Monday and...

Stefan Koopmanschap's Blog: PHP on Azure contest: The cool stuff

Stefan Koopmanschap's Blog: PHP on Azure contest: The cool stuff
Stefan Koopmanschap has a new post today talking about the latest contest being put on by Microsoft - writing an application with PHP on Azure - and why you should get involved.So as you might or might not have noticed yet, PHPBenelux is organizing a new contest in collaboration with Microsoft: The PHP on Azure contest. The idea is simple: Build an application in PHP that runs on the Windows Azure platform. I think it's a great idea to participate, let me try to tell you why.He suggests a few reasons...

Alexey Zakhlestins' Blog: GObject for PHP (new bindings project)

Alexey Zakhlestins' Blog: GObject for PHP (new bindings project)
In a new post Alexey Zakhlestins talks about a project he's been working on, a part of the split up with PHP-GTK out into separate projects. His part of the group is GObject with has now been moved over to github.This new PHP extension is called "GObject for PHP", so, my main concern, obviously is building comfortable bridge between GObject objects and PHP's objects. It starts to work, but there's a lot of stuff to be done. Please join the project, if you are interested. We need more hands!He describes...

Latest PHP Tweets