PhpRiot
News Archive
PhpRiot Newsletter
Your Email Address:

More information
PhpRiot Latest Blog Posts
Displaying blog posts 161 to 180 of 227

Site News: Popular Posts for the Week of 11.09.2012

Site News: Popular Posts for the Week of 11.09.2012
Popular posts from PHPDeveloper.org for the past week:Lee Blue: PHP vs Ruby :: 2012 Year End Review Community News: Packagist Latest Releases for 11.03.2012 Voices of the ElePHPant: It's the Booze Talking #4: The PHP Community (Part 2) Adam Culp: Clean Development Series (Parts 1, 2 & 3) Community News: Packagist Latest Releases for 11.04.2012 Matthew Weier O'Phinney: OpenShift, ZF2, and Composer Wojciech Sznapka: Is Symfony2 a MVC framework? DZone.com: Deploying PHP Projects with Webistrano Rob Allen:...

Markdown output for PHPDocumentor2

Markdown output for PHPDocumentor2
I'm moving some codebases to PHP namespaces, and as a result I could no longer use my crappy API documentation script. So, I needed a replacement, and with the help of PHPDocumentor, I was able to create a simple package that outputs github-compatible markdown documentation, based on twig templates.Here's an example.It's not perfect yet, but hopefully useful for others in the same boat. You can find the project and setup instructions here: https://github.com/evert/phpdoc-md.


Timothy Boronczyk: PHP Assertions

Timothy Boronczyk: PHP Assertions
Timothy Boronczyk has written up a new post that looks at using assertions in PHP - the actual use of the assert function to evaluate values in your code.I stumbled upon assertions in PHP today, though why I didn't know they existed after working with the language for so long and what I was looking for originally when I came across them are both mysteries. And with the increasing focus on software quality in the PHP community, I wondered why I hadn't seen them used by others. I decided to ask around,...

PHPMaster.com: The Open/Closed Principle

PHPMaster.com: The Open/Closed Principle
On PHPMaster.com there's a new post continuing their look at the SOLID development methodologies with the "O" in the acronym - the Open/Closed Principle:I have to admit the first time I peeked at the academic definition of the Open/Closed Principle, its predicate was surprisingly clear to me. Leaving all of the technical jargon out of the picture, of course, its dictate was pretty much the mantra that we've heard so many times before: "Don't hack the core". Well, admittedly there's a pinch of ambiguity...

SabreDAV 1.8 released (with namespaces!)

SabreDAV 1.8 released (with namespaces!)
Only a month after 1.7 I just released SabreDAV 1.8. Not that much changes since 1.7, except that I migrated all old prefix-style code to PHP 5.3 namespaces. This means that when you used to refer to a class as "Sabre_DAV_Server", this is now "Sabre\DAV\Server".So for the most part it's a simple mapping, but there were a few exceptions. While "Sabre_CardDAV_Backend_Abstract" is a valid PHP class name, "Sabre\CardDAV\Backend\Abstract" is not, because the last bit (abstract) is a keyword.I migrated all...

KnpLabs Blog: Composer Level2: 5 more things like Class Maps, Forking, & Scripts

KnpLabs Blog: Composer Level2: 5 more things like Class Maps, Forking, & Scripts
On the KnpLabs blog there's a new post from Ryan Weaver sharing some cool things you can do with Composer you might not have known about when managing your application's dependencies.For those of you that are comfortable with Composer, I wanted to talk about a few lesser-known, but really fantastic features. These are inspired by real questions I've heard while running around the country doing my one-man composer-and-dancing show (i.e. conference talks).He shares four of them with a fifth that's more of...

Community News: Packagist Latest Releases for 11.08.2012

Community News: Packagist Latest Releases for 11.08.2012
Recent releases from the Packagist:eloquent/equality (1.0.0) webino/zf2nette-debug (1.1.1) kachkaev/assets-version-bundle (v1.0.1) evert/phpdoc-md (0.0.6) dwolla/dwolla-php (1.2.6) cypresslab/gitelephant (0.9.3) varnish/varnish-bundle (1.0.0) gabordemooij/stamp (v2.0.2) thewebmen/pirumage (0.1.0) icanboogie/event (1.0.0) claratest/security (v2.0, v1.0) twig/twig (v1.11.0) misd/linkify-bundle (v1.0.1) misd/linkify (v1.1.0) ruudk/campfire-exception-bundle (0.1.2) knplabs/knp-snappy (0.1.0) mjohnson/forum...

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:Kowser's Blog: Kohana Tutorial: For the beginners PHPMaster.com: PHP Master: Writing Cutting-Edge Code php|architect: Geolocation: Easier Than It Looks Matthew Weier O'Phinney's Blog: Getting started writing ZF2 modules ZendCasts.com: Building a JSON End-Point With SLIM and jQuery: Part 2 Ed Finkler's Blog: Building a Tumblelog with Gimme Bar and PHP Chris Hartjes' Blog: Building a Gimmebar Sidebar PHPBuilder.com: Building RESTful Web...

When Possible, Use File *Resources* Instead Of File *Names*

When Possible, Use File *Resources* Instead Of File *Names*
In testing the Aura.Http package, I have realized that it's much more flexible, testing wise, to pass around file resources (a.k.a. handles, pointers, or streams) than it is to pass around file names. When you do that, you can use a Continue reading a'

Lone Star PHP Keynote Slides Posted

Lone Star PHP Keynote Slides Posted
You can find them on Slideshare here: http://www.slideshare.net/pmjones88/it-was-like-that-when-i-got-here. Thanks to everyone who attended and rated the talk on Joind.in!

Aura.Router can also be used as a micro-framework dispatcher!

Aura.Router can also be used as a micro-framework dispatcher!
Sometimes you may wish to use Aura as a micro-framework. It's also possible to assigning anonymous function to controller: add("read", "/blog/read/{:id}{:format}", [ "params" = [ "id" = "(\d+)", "format" = "(\..+)?", ], "values" = [ "controller" = function ($args) a Continue reading a'

tl;dr of DI vs SL

tl;dr of DI vs SL
Chris Hartjes has a nice writeup on dependency injection containers versus service locators. Here's a short way to tell which one you're using: aoIf your class has a dependency on a container, you're using Service Locator, not Dependency Injection.a If a Continue reading a'

PHP-FIG: PSR 1 and 2 Accepted

PHP-FIG: PSR 1 and 2 Accepted
Earlier today, the PHP Framework Interoperability Group accepted two standards recommendations: PSR-1, aoBasic Coding Standarda, passed with 17 in favor and none against. PSR-2, aoCoding Style Guidea, passed with 13 in favor and 4 against, 1 abstaining. There's been a a Continue reading a'

FIG, FUD & FOMO

FIG, FUD & FOMO
In which MWOP, Jeremy Lindblom, and I all discuss the Framework Interoperability Group (nAe the PHP Standards group). Is it a secret cabal? Are we trying to take over the community? Is a standard style guide going to get shoved a Continue reading a'


Software Runs the World: How Scared Should We Be That So Much of It Is So Bad?

Software Runs the World: How Scared Should We Be That So Much of It Is So Bad?
The underlying problem here is that most software is not very good. Writing good software is hard. There are thousands of opportunities to make mistakes. More importantly, it's difficult if not impossible to anticipate all the situations that a software a Continue reading a'

The dark craft of engineering management

The dark craft of engineering management
Why is management a craft? It's a craft for the same reasons engineering is a craft.A You can read all the books you want on something but crafts are learned by getting your hands in it and getting them dirty.A a Continue reading a'

Valve Software's Chief Economist: A Spontaneous Order Firm

Valve Software's Chief Economist: A Spontaneous Order Firm
A corporation that tries to function as a type of aspontaneous order' (i.e. without an internal system of command/hierarchy) seems like a contradiction in terms. Smith's and Hayek's spontaneous orders turn on price signals. As CoaseAet alAexplained in the previous a Continue reading a'

Lee Blue: PHP vs Ruby :: 2012 Year End Review

Lee Blue: PHP vs Ruby :: 2012 Year End Review
In this new post Lee Blue has gone through and compared Ruby and PHP in a "year end review" of their current statuses and what each of them have to offer:Now that I've been working with Ruby in much more depth and both PHP and Ruby have matured dramatically over the past five years it is time to reevaluate the comparison. The previous article was primarily centered around the languages themselves and was not a showdown between any particular frameworks. In this review we will touch a bit more on...