You are browsing the archive for Symfony.

sfAmfPlugin 1.3.0 released

5. May 2009 in AMF, doctrine, Flex, General, Symfony

Just want to inform you that my sfAmfPlugin for Symfony-Flex-Communication was released in version 1.3.0.

Most noticeable changes:

  • Fixing a bug with PHP Strict mode (thanks to Daniel Holmes for spotting this one)
  • Adding the possibility to store the services in all lib-folders of a project (app, module, project, plugins)
  • Fixing different bugs with AMF conversion of Doctrine objects (thanks to Patrick Schirch for bugging me about them)

I’m still working to get the Doctrine support better, there will be much more about this in the next version of the plugin. Class mapping is also a thing I want to improve a lot. So stay tuned and watch out for future versions :-)

sfAmfPlugin 1.2.3 for Flex/Symfony released

16. April 2009 in AMF, Flex, General, Symfony

Hi,

just for your information: I released the version 1.2.3 of the sfAmfPlugin earlier this day. The new version is a pretty important update so please install the new version.

The most important change is the fix of the bug taht caused problems with the usage of packages for the service classes

Installation as always:

If you want more information about the plugin vistit the symfony plugin page or read the the HelloWorld example blog post.

Timo

sfAmfPlugin version 1.2.0 released

9. April 2009 in Flex, General, Symfony

Hi all,

i just released the new version 1.2.0 of the AMF-Plugin for Symfony (http://www.symfony-project.org/plugins/sfAmfPlugin/1_2_0)

There are some new features in this version:

  • Updated SabreAMF to the most current version 1.2.203
  • Added a fix for Service-Classes with packages in the class name
  • More work on comments and documentation
  • Added Symfony 1.2.0 compatibility
  • Added a new commandline-task with that you can create a new Service class

The most important new feature is the new task. You can now create a service class via command line:

$ symfony amf:create-service User will create a file /lib/services/UserService.class.php

$symfony amf:create-service –package=de.shiftup.project User will create  /lib/services/se/shiftup/project/UserService.class.php

Get it while it is hot :-)

As always: Feedback wanted!

The best Symfony IDE: PHPEdit

5. April 2009 in Symfony

If you think about the best IDE you will probably think about eclipse with the PDT-Plugin, Netbeans or Kommodo. None of them has special support for the Symfony-Framework. As I wrote in an earlier post I’m using eclipse for my daily work. With some enhancements it is a pretty good IDE for Symfony-Development. Netbeans catched up with the last releases an there is a special Symfony-Support planned in one of the future releases.

Last week there was a new release of the Windows-PHP-IDE PHPEdit. Since Version 3.2 there is an excellent Symfony support in this IDE.  A bunch of features makes the development with Symfony a lot more productive. I couldn’t resist and took a deeper look at this software. It was the first time that I used PHPEdit an I’m surprised on how good it is.

Wizards

PHPEdit has a lot of wizards for creating Symfony-Projects and different Symfony artifacts (i.e. modules, actions…). For developers who dont know all of the symfony command line tasks and all of their parameters, these wizards are a great help.

Project Wizard Command Wizards

Commands

PHPEdit installs a plugin that allows the IDE to get information about all tasks of the current project. The context menu of the project is file-sensitive. So you will get other tasks in the context menu when clicking on a application than clicking on a module or project. All Symfony tasks are available via context menu. Most of them with an upcoming wizard in which you can set the parameters by mouse clicks

Symfony Tasks

Code Completion and Editor

The Editor has everything you can think of and support for all neccessary file formats (i.e. YAML) are included. Code-Folding,Line-Numbers, Smart Idention and others are available. Plus you have a great IntelliSense support. The Editor knows even the Symfony-Framework functions of the classes. You can jump between Actions and View-Template what is solving one of the most annoying problems if you are working on a large project and have a lot of action.class.php files open.

Jump between Action and template IntelliSense

Conclusion

The makers of PHPEdit did a wunderful job. The symfony support is how I it should be in every IDE :-)

Beside of this Framework-Specific features there is all you need for PHP-Development. A good PHP-Editor with IntelliSense and PHP-Debugging, Project management, everything is on board and pretty good. The only drawback is that PHPEdit is not freely available. It has a commercial license starting with 89.- Euros for the basic feature edition. If you are not using windows another drawback is that PHPEdit is only available for windows.

I’m still surprised why I never used this IDE before because it has everything you need for PHP development. Maybe it was because of its commercial license. For now it is the best Symfony IDE. The Framework-Support is outstanding. Lets see how the planned Symfony-Support in Netbeans can compete with this.

German Symfony trainings

11. January 2009 in doctrine, Model, Propel, Symfony, workshop

Hello all,I just anounced the dates and locations for my german symfony trainings/workshops. The workshops take place in Stuttgart, Hamburg and Berlin. Language of the workshops is german. 
You can find more information and prices at the following training-website
Maybe we can see us at one of these events :-)     

Use routing to serve localized and dynamic JavaScript

13. December 2008 in Symfony

Hi all,times are changing. For a lot of my projects I use a JavaScript only Web UI based on toolkits like ExtJs or qooxdoo. These applications are composed of a lot JS-Files located in the web/js folder of the Symfony-project.One of my problems i always had was that I had no chance to use Symfony Helper-Functions in those files. Especially the I18N and URL-Helper functions were missed badly.Over the time I came up with a solution the works great for me. Maybe it is usefull for you too… Read the rest of this entry →

Flex with sfAmfPlugin part 2

25. August 2008 in doctrine, Flex, Model, Symfony

Today I released a new version of my sfAmfPlugin for the symfony Framework. Main focus of this release was the support of Doctrine. Now you can transfer Doctrine_Recordset- and Doctrine_Collections directly without mapping the values. As you can see in the following listing there is nothing to do for you to use this feature.

So you can transfer your Doctrine classes directly to the Flex-Client.

You can find more information on the Plugin homepage.

I will keep on working on the plugin so stay tuned for upcoming changes :-)

Using sfAmfPlugin part 1

22. August 2008 in Flex, Symfony

As I wrote in my last blog article I on my way to develop my first Symfony application with a Flex fronten. Therefore I’m developing my own Symfony plugin to handle AMF-Service-Calls from the client. For my first steps I used the AMF-PHP library what worked great but has one really big drawback: It has a GPL-License. Cause I developing in a commercial environment GPL isn’t pretty useful for a library. After some googling around a found SabreAMF. SabreAMF is also written in PHP but is more a low level library. But it is fitting my needs so i used it for the first public available version of my Symfony plugin.

Read the rest of this entry →

Flex and Symfony

20. August 2008 in Flex, Symfony

For a new upcoming project i was looking for the best way to implement the user interface. Currently there are more alternatives to choose from than ever in the history of developing webbased applications. The following ones were the candidates with the best chances:

1.) AJAX-Pimped HTML interface
This would have been the easiest choice. But this solution laks of a lot of features needed for modern web applications.

2.) ExtJS
I used ExtJS (www.extjs.com) for some mid-sized projects in the last months. The quality of the library is impressive. Most of the widgets are high quality solutions. But there are some problems with ExtJS

  •   The license change to GPL offended a lot of developers and is not the best choice for enterprise applications
  •   Developing Javascript-Interfaces with ExtJS takes a lot of time and is somtimes error-prone

3.) qooxdoo
Qooxdoo (www.qooxdoo.org) is another JavaScript based Widget-System. Compared with ExtJS there are far less features. Development is driven by one of the largest european hosting provider. The upcoming version 0.8 looks promising but in my opinion this solution is not really ready for enterprise web applications at the moment. For example the Grid-Controll lacks a lot of features that makes the Grid of ExtJS so cool.

4.) Flex
I tried Flex some months ago (Version 2) and at that time I was impressed how easy the development was. The new Version is even better. After playing around with some smaller samples I made the decission to use Flex as a frontend. The productivity in creating the user interface is great so far. It is extensible and the development with Action-Script is pretty easy for everyone who is able to develop JavaScript. With the commercial Flex Builder the development is fast and easy.

I cross my fingers that it scales good for user interfaces of enterprise applications with many windows, masks and informations.

Symfony and Flex
Communication between flex an the backend can be done on different ways. For PHP backend AMF is the best way. Some month ago there was a AMF-Plugin for symfony but it isn’t in the plugin list anymore. So I decided to develop my own.

So far i have a first version (0.1) based on AMFPHP with basic features needed to create Services that are called in Symfony actions. Cause AMFPHP is GPL too i will replace it with another solution. Also Doctrine and Propel-Support is on my TODO-list.

So stay tuned, i will post more informations the next days.

Website for the german Symfony-Book

8. June 2008 in Symfony

today i launched the first “version” of the official website of the german Symfony-Book “Das Symfony Framework” that will be available in the next few days. The book covers version 1.1 of Symfony. On the website you can find informations about the book, the bugs that are found in the book and links for each chapter (still a lot of links to be added at the moment)

If you are interessted just visit the website under www.symfony-zone.com (german only)