Category Archives: PHP

Should my next project use Symfony2?

In a couple of hours, the Symfony Live event in Paris is going to start. You can expect Fabien Potencier to release Symfony 2.0 at the keynote he is holding on March 3rd at 17:30.

This is actually not a big deal since Symfony2 has been around for a couple of months. The big question is, should you already start developing your next project with Symfony2? There is no definite answer to that but what you can expect is a “not so much” changing API and already robust Framework right from the start. If you are planing a big project with longer time to develop, Symfony2 is a must. If you have already started and use Symfony1.4, stick with it.

Automatic Anti-Pattern Corrections for PHP

During my computer science studies at the Vorarlberg University of Applied Sciences I wrote my bachelor thesis about “Automatic Anti-Pattern Corrections for PHP”. As a fan of the open source philosophy, I want to share my work with others. I invite everyone to contribute to the great lex-pass project and this approach to better PHP software. Please share your thought and ideas on this with me and others by leaving a comment or sending me a message. Continue reading Automatic Anti-Pattern Corrections for PHP

Symfony 2.0 Preview

Here we go. Fabien Potencier last week released the preview website for symfony 2.0 (symfony reloaded). Me, as a long time PHP and symfony user this preview shows a lot of new interesting stuff comming to web development with symfony. A Quick-Tour of Fabiens newest baby is also available and points out major changes to the framework. First thing to notice is the completly changed directory structure. Another major step is the use of >= PHP 5.3.2 which adds support for namespaces and gives a great performance boost. As release date for symfony 2.0 “late 2010” is scheduled.
[ad#Google Adsense 468×60 Singlepost Mystique]

Symfony Support in NetBeans 6.8 Announced

The NetBeans Team has announced to support not just PHP 5.3 which was released earlier last week but also Symfony in the next release (6.8)!

Because I am not very pleased with the PHP support within Eclipse PDT, I am currently using VIM for PHP, and specially, Symfony development.

Since Pierre told me recently that the PHP support for NetBeans is getting better and better, I am really looking forward to the next NetBeans release.

More information on Symfony integration in Netbeans

PHP 5.3 Released

Well not yet, but hopefully in a couple of hours and minutes. (Check php.net) Although there are some new cool features in it such as lambda functions, closures and PHAR support, there is this silly namespace thing. Namespaces are good in generally (remember, you had to prefix each class with your damn project-name to be on the save side) but separating the namespace parts with the *escape* character “\” (YES THE BACKSLASH!) – the worst ever to choose character – is a awful and total painful thing.

I was hoping until the latest second before the release that someone will fix this BUG and replace the namespace-separator with a better character (maybe “_”, “-“, “..” or “|” since “.” (concat), “::” (static) are already used for other issues).

Do not get me wrong, I appreciate the great work the PHP5.3 Team has done but this namespace thing takes some of the coolness away from that release. Sad but true story.

*UPDATE* PHP 5.3.0 has been release now.

Symfony 1.2 introduces REST

As Fabien just posted on the Symfony Blog the next major release of Symfony – Symfony 1.2 – will introduce a quite cool feature to the framework. It will be possible to add a hidden form element to add REST inforrmation to the form and get the REST state with sfRequest::getMethod(). This is quite useful and adds native support for PUT and DELETE from the browser.

Symfony 1.1 Ajax Form Validation

Since Symfony 1.1 was released, I am working with it. I adept a existing Symfony 1.0 application to 1.1. This process is quite tricky and needs a lot of research to get the result that I want.

As I faced a problem with a form which I submit via an Ajax request, I found a pretty nice solution in doing this with Symfony 1.1.
Continue reading Symfony 1.1 Ajax Form Validation

#php.de@IRCnet

Weil ich mich nie an die Blogs der unterschiedlichen Leute im IRCnet Channel #php.de erinnern kann, habe ich angefangen eine Liste mit eben den Blogs dieser anzulegen. Es gibt für jeden #php.de User die Möglichkeit sich selbst einzutragen, ich muss dann den entsprechenden Link lediglich noch freischalten.

Für alle Interessierten: #php.de@IRCnet Blogs

PHP-Code-Camp in München

Vom 3. bis zum 6. März 2008 findet in München das PHP Code Camp statt und es sind noch Plätze frei. Auf diesem Camp werden unterschiedliche Schulungen mit einigen bekannten Referenten abgehalten. Das Camp findet im NH Hotel Deutscher Kaiser direkt am Münchner Hauptbahnhof statt und kostet ab 1.790 Euro. Organisiert wird das Code Camp vom PHP Magazin und von der Entwickler Akademie und wird als ein neuartiges Trainingskonzept beworben, das vier Tage lang in konzentrierter Form vermittelt, wie PHP-Anwendungen mit professionellem Anspruch entwickelt werden können.

Ein Auszug aus dem geplanten Programm:

Interaktives Code-Review einer “schlechten” Anwendung
PHP-Security (SQL-Injection, XSS, Session-Hijacking, Input-Verarbeitung)
Objektorientierte Programmierung
Testgetriebene Entwicklung
Einführung in Unit Testing, Entwicklung von Unit Tests
Werkzeuge für die PHP-Entwicklung
Funktionale Tests
Patterns für PHP
Code-Review von schlechtem und gutem Code

Mehr Informationen:
PHP Code Camp