Category Archives: PHP Development

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 , , , , , | 1 Comment

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 – 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

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

Exception Best Practices in PHP 5.3

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

QueryPath

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

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

When Flat PHP meets Symfony

When Flat PHP meets Symfony

Aside | Posted on by | Tagged , , | 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

PHP: Extending stdClass with Closures (plus Visitor)

From the red-wine department: $this remains unresolved so of limited use, but some fun anyway: And before you ask: It’s just that I was wondering the following did not work:

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

PHP: is_null() vs. NULL ===

From the know your language department: If you can, go with the identical comparison operator ===. That’s a good approach in PHP for various reasons. Only one example: could be written as: but it is about more than 14 times … Continue reading

Posted in PHP Development, Pressed, The Know Your Language Department | Tagged , , , | 7 Comments

apigen

apigen looks clean.

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