Archive for August, 2008

Zend Framework 1.6 RC1 with WSDL AutoDiscovery

Zend Framework's new release 1.6 is in it's RC1 stage now. It has got many exiting features, including one of the much waited WSDL auto-generation using Zend_Soap_AutoDiscover class. It will automatically generate WSDL based on your class definition based on PHP Documentation.

I am not sure why it is taking long with PHP to have WSDL auto-generation feature? May be loose typing..!

Anyway current implementation of Zend's WSDL generation with Zend_Soap_AutoDiscover doesn't seems to be perfect. It is having issues with Complex Type. Although you can manually generate WSDL with the help of Zend_Soap_Wsdl.

When I tried with AutoDiscovery feature results were surprising for Complex Type, behavior of generator was weired. Let's hope that Zend will fix issues with this great feature before their final release. Documentation is also in it's building stage and needs more examples and better compilation. Download Zend Framework from here, and try with tar.gz, it looks like zip is not working for me (more than once) with current compilation due to some reason.

Previously I have used WSDL generator class from jool.nl, it was quite handy and easy to configure and uses Reflections to generate WSDL from PHP Docs just like Zend Framework.

Tags: , ,

PHP: Performance Improvement Tips

This post covers some performance improvement tips by showing merits or demerits of various coding practices in PHP. While developing small websites or projects which are not meant to be maintained for longer period of time it's okey it we don't care about all this performance improvement and so on. But while we are into the development of some product or project which are going to be maintained for longer period of time then it is required that we take care of small things from the beginning. Initially we may feel that benefits are not drastic but when we have large amount of user base then all small and minor things matters.

In PHP we have always so many ways to do things. During development of PHP as a language, developer community/team added up many functions and features (due to requests..!) in the language and some of them might be redundant, so we have sometimes many ways to solve one problem. Here sometimes due to not knowing what is the best way to solve the problem, we use the solution which we already know or we are more familiar with. Sometimes as a developer we create habit of doing something in particular way for always. Please read on to know whether you are already aware of this tips, which could improve performance of your php application. (Even if it is micro improvement it matters..!) Read the rest of this entry »

Tags: , ,