Category Archives: PHP Development

PHP MVC with Tom Butler

In the PHP chat a link got passed around (see “Deploying MVC on the web” below) and I thought it’s worth to link the multiple MVC related articles by Tom Butler. He is one of those persons who actually leave … Continue reading

Posted in Linked, PHP Development, Pressed, The Know Your Language Department | Tagged , , , , | 1 Comment

The “Missing” Patterns of the PHP Manual

Gladly some pattern code has been removed from the PHP Manual. Not so gladly, it’s just gone, including user comments. The not so good part of the story is, that the two patterns that were given in the manual page … Continue reading

Posted in PHP Development, Pressed | Tagged , , , , , , , , , | 3 Comments

The Daily Mistake: Not to Proxy Remote Services

“Just gimme a min, I glue that HTTP based remote service in.” – Whether the standard file_get_contents + Json *bam* or complete SOAP, a developer should have the time to wrap each (remote) data-source inside it’s own interface that is … Continue reading

Posted in Code Smells, PHP Code Smells, PHP Development, Pressed, Surviving the Internet | Tagged , , , , , , , , , , , | 3 Comments

Hidden Features of PHP – Ilia Alshanetsky

Ilia put the slides of his talk on 06 Jun 2012 in Toronto named “Hidden Features of PHP” online. He lists features, functions and extensions he thinks are hidden gems and shows examples of them. Slides are available at http://ilia.wsContinue reading

Posted in Linked, PHP Development, PHP Development, Pressed, Tools | Tagged , , , , , , , , , | Leave a comment

PHP on Heroku, again

Setting up a PHP project for the Heroku platform is straight-forward if you know how. The information is a bit scattered, that’s why I write my own little post about it so I don’t have to remember this my own … Continue reading

Posted in Hakre's Tips, PHP Development, Pressed, Reports | Tagged , , , | 31 Comments

Iterating over Multiple Iterators at Once

PHP’s SPL has two build-in Iterators that deal with multiple iterators at once: AppendIterator and MultipleIterator. In this posting I’ll cover both a bit: AppendIterator will put one iterator after the other so it get’s like a long queue or … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment

CSS Selector to XPath conversion

While playing with a parser experiment that fully supports the CSS selectors syntax and the discovery of the Selectors API I started to think about the transformation from CSS selectors to XPath. Sure I’m not the only one, so I … Continue reading

Posted in Developing, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment

Some PHP Iterator Fun

I must have had too much free time. Over at Stackoverflow some kind of PHP question pops up from time to time about how to distribute a sequence of data in form of a table or in columns. You already … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment

Static Considered Harmful

static considered harmful and Why Singletons have no use in PHP.

Aside | Posted on by | Tagged , , , , , | Leave a comment

phptags – tidies up tags in PHP scripts and guards whitespace

Just stumbled over another PHP related tool today, which I think is worth the link: phptags is a simple commandline tool to tidy up open and close tags in PHP scripts. It can rewrite close tags, and strip leading or … Continue reading

Posted in Hakre's Tips, Linked, PHP Development, PHP Development, Pressed, Tools | Tagged , , , , , , , | Leave a comment

How to avoid “tight coupling” in a WordPress Plugin?

This was asked today over at Stackoverflow (WordPress Plugin: How do I avoid “tight coupling”?) and I was able to grasp some time for an answer, I thought it’s worth linking it for the interested reader. Sure it can’t answer … Continue reading

Posted in Hakre's Tips, Linked, PHP Development, Pressed, WordPress Support | Tagged , , , , , , , , , | 1 Comment

PHP UTF-8 String Length

If you’ve got an UTF-8 encoded PHP string (e.g. when working with DOMDocument) and you don’t want to rely on the mbstring extension to get it’s length, this can be solved with a simple regular expression (as the string does … Continue reading

Posted in PHP Development, PHP Library, Pressed, The Know Your Language Department | Tagged , , , , , , , , | 1 Comment

CodeIgniter goes Copyleft with OSL

As I know some WordPress related developers are using CodeIgniter (CI) as well, I think it’s worth to share: It’s true that CodeIgniter needed some simpler to handle license, but the outcome so far looks rather devastating and is paralleled … Continue reading

Posted in Linked, PHP Development, Pressed | Tagged , , , , , , , , , | 12 Comments

vanity – high-quality, user-friendly documentation from PHP source code

Vanity is on github.

Aside | Posted on by | Tagged | Leave a comment

Flow3 went gold

Flow3 Version 1.0 is officially out. The Typo3 spin-off is a full featured PHP application framework with modern software design approaches. After the release of Symfony 2 in July it looks like that 2011 is the year of the next … Continue reading

Posted in Linked, PHP Development, PHP Development, PHP Frameworks, PHP Library, Pressed, Tools | Tagged , , | Leave a comment

List of Online PHP Codepads

Yes, there are some. Looking for a PHP version? I was looking for a PHP 5.1 codepad (run PHP code online for test purposes), but was not able to. I remember there was one, but I have not found it. … Continue reading

Posted in Linked, PHP Development, Pressed, Tools, Webtools | Tagged , , , , | 4 Comments

HEAD first with PHP Streams

PHP has a built-in function called get_headers that will return the response headers. But it has some downsides, like requesting the whole response (and not only the HEAD) and it’s hard to control behaviour for redirects. On Stackoverflow some users … Continue reading

Posted in Hakre's Tips, PHP Development, Pressed | Tagged , , , , , , , | 1 Comment

Symfony 2.0 went gold!

Symfony 2.0 released! (via Jakub Zala). Cheers! First PHP framework (and beating NGINX) delivering RFC-conform HTTP redirect messages. If you have not looked inside the code, it’s time you start reading. There is much to discover. Source is on github.

Posted in Linked, PHP Development, PHP Frameworks, PHP Library, Pressed, Tools | Tagged , | Leave a comment

getallheaders available for FASTCGI in PHP 5.4

Good news. PHP 5.4 – according to docs – will support the “apache alias” getallheaders(). That means, you can get all header values of the request w/o fiddling any longer with server configuration. N1. Read On: What new feature in … Continue reading

Posted in Linked, PHP Development, Pressed | Tagged , , , , , , , | 5 Comments

Improved handling of HTTP requests in PHP

Improved handling of HTTP requests in PHP Merci beaucoup Nicolas Grekas for compiling this in-depth! Read On: getallheaders available for FASTCGI in PHP 5.4 (18 Jul 2011)

Posted in Linked, PHP Development, The Know Your Language Department | Tagged , , , | 1 Comment