Category Archives: PHP Development

Speedpills 4 Linting PHP Files in Parallel

Quite some time ago I’ve already written about linting PHP files in the shell / build. Even though parallel linting is fine, when the code-base is growing larger and larger, the build becomes slower and slower. A slow build sucks. … Continue reading

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

Using Assertions with (Legacy) PHP Code

While it was not much advised to use assertions (the assert PHP language construct) prior to PHP 7 due to the fact that it actually eval’ed a string’ed code, these days are gone. This is probably a lesser known fact with … Continue reading

Posted in Developing, Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools | Tagged , , , , , , , | Leave a comment

Lazy Loading in PHP Object Composition

When it comes to nicely performing PHP scripts (yes in PHP these are all scripts as PHP code is run-time) there is a nice addition since PHP 7 named the Null coalescing operator which plays very well with the basic nature … Continue reading

Posted in Hakre's Tips, PHP Development, PHP Development, Pressed, The Know Your Language Department, Tools | Tagged , | Leave a comment

Make any Composer Command Segfault

This is from the shock your co-worker department: There is an easy one-liner to make any composer based project spit “Segmentation fault (core dumped)” regardless of the Composer command entered:

Posted in Bugs and Features, PHP Development, Pressed, Tools | Tagged , , | Leave a comment

SimpleXML and JSON Encode in PHP – Part III and End

The previous two parts (Part I; Part II) did outline PHP’s standard behaviour when JSON encoding a SimpleXMLElement with json_encode(). As outlined this does not always fits the encoding needs and for some potential problems some workarounds have been showed. … Continue reading

Posted in Developing, PHP Development, PHP Development, Pressed, Tools | Tagged , , , , , | 4 Comments

SimpleXML and JSON Encode in PHP – Part II

In the previous post (Part I) I was giving a little overview for common woes turning a SimpleXMLElement into JSON when XML structural information is available that JSON is not capable to encode easily. The explanations given there were intended … Continue reading

Posted in Developing, PHP Development, PHP Development, Pressed, Tools | Tagged , , , , , | 2 Comments

SimpleXML and JSON Encode in PHP – Part I

With SimpleXMLElement it is often easy and looks like a very quick way to turn some XML into JSON. But not everything in PHP that has an easy interface works out of the box. In this three part series I’ll … Continue reading

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

PHP: XPath on HTML and XHTML

Christan Weiske has published a nice summarizing article with the same title. It contains some detailed information I haven’t found so far on the web so worth the link: PHP: XPath on HTML and XHTML. It also reminds me of … Continue reading

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

PHP on Google App Engine – Quick First Review

This is fresh out of the news (Ars; Wired; WHIR; VB), and what Google wants to offer looks like a very cool package. So if you hadn’t had the time to view the video, here is a quick summary and … Continue reading

Posted in Features, Hakre's Tips, PHP Development, Pressed, Reports, Tools | Tagged , , , , , , , , , , , | 7 Comments

Event-driven PHP – Igor Wiedler

Nice talk by Igor at TakeOff 2013: Event-driven PHP – Igor Wiedler.

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

Web3tracer a XHProf derived PHP Profiler / Tracer

“web3tracer is a PHP profiler / tracer derived from XHProf; it is a PHP module written in C allowing you to profile php scripts performance with minimum overhead.” License: LGPL 3.0 Read On: Pinba – Realtime Monitoring and Statistics Server … Continue reading

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

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

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

Vanity is on github.

Posted on by hakre | 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

Geany 0.21 released!

The news is already ten days old, but better late than never: Geany 0.21 released. Geany is a fine GTK2 based editor, I use it normally for quick PHP writing. Nice PHP lint, shell and manual integration.

Posted in Linked, PHP Development, Tools | Tagged , , | 2 Comments

Exception Best Practices in PHP 5.3

Posted on by hakre | Leave a comment

QueryPath PHP Library to deal with XML/HTML esay CSS-like access and manipulation. Code available at Github.

Posted on by hakre | Leave a comment

When Flat PHP meets Symfony

Posted on by hakre | Leave a comment

List of PHPMD Rulesets

As I use PHPMD from time to time only (but more and more often) I needed to lookup the default ruleset names from the filesystem. As google is faster than a search on the harddrive, here they are for future … Continue reading

Posted in PHP Code Smells, PHP Development, PHP Development, Pressed, Tools, Uncategorized | Tagged , , | 4 Comments