New ideas for the next ZF releases
- Posted by thomasw at 22:38:12 // //
- Announcements, File Transfer
I added some new proposals for which I had the ideas as I worked at the CLDR integration.
Some other new features and ideas will be added as feature enhancement and don’t need a proposal as they cover existing components.
A proposal for a new validator I added today. It is able to validate postal codes for all countries. Of course you could say that someone can also use the regex validator to provide this feature. But this would be hard as most people don’t know the correct regex strings and when you need to validate multiple countries (a webshop for several countries for example) such a validator would be much easier to use.
A proposal for a new validator which will be able to validate if the given input is a phone number or not. Note that phone numbers are differently for each country, and in their notation. A number in an international format (+43 1 234567) does not match with a national number (01 234567). This validator will be able to check all of these different formats
A proposal for a new view helper which will simplify the rendering and usage of Zend_Date objects within a view.
The idea behind this proposal is that sometimes you need to translate exceptions. For example when you want to have your log in a language which your customer understands (many customers don’t understand english). But this proposal can also be used to change the message which an exception throws. This can be used to change the exception for example from “No database connection to MYDB” to “Db Problems… please ask your DBAdmin” which would also be a better way than retrowing the exception.
This filter will make it possible to change user input into a boolean value. Now you may say that you could simply cast to a boolean, but this filter does more than that. It will/can detect “yes”, “no” written in any language and change it to boolean. Maybe even the textual strings “true” and “false”.
This proposal describes a filter which will be able to do all work which changes the length of a string. This is not only stripping but also padding within the same filter. having both into the same filter has some advantage as you can define a minimum and a maximum string length.
This will be a very neat validator. It is simply a callback which allows to use any self defined function or method to be usedas validator. It works nearly the same way as Zend_Filter_Callback.
This proposal describes a view helper which will simplify the usage of currencies within a view. It makes use of Zend_Currency.
This is the only proposal of all above mentioned which is already accepted. It will add compression and decompression support to ZF. Originally only intended for files it will at last also support string compression.
There are also some issues which are not big enough to be written as proposal but which implement features which will be very nice for most users.
* Zend_Currency improvements
I plan some improvements for Zend_Currency. These are a interface for exchange services. Note that Zend_Currency itself is not able to change between currencies… for example when you want ot know how much USD a EUR value is. Another improvement will be that Zend_Currency will then be able to calculate currencies. These two features are related to each other.
* Zend_Locale improvements
CLDR 1.7 added locale upgrading. Zend_Locale will implement this feature. This allows to get “en” from your user and then have “en_US” at the end without interaction. This works for all languages but is, of course, limited to the territories with the most speakers of this language. Zend_Locale itself already supports 3-letter locales which have not been supported in past. Additionally Zend_Locale accepts now also locales with additional informations. For example a locale like “en-Latn-Transnat-US” would be accepted and internally changed to “en_US”.
I have much more ideas than time to work on them :-)
Many of them can also be found within our wiki.
If you want me to work on some of these ideas faster then on others feel free to give your comments on the proposals and to vote for issues.
Greetings
Thomas Weidner
I18N Team Leader, Zend Framework
Zend Framework Advisory Board Member
Zend Certified Engineer for Zend Framework
Add comment
Fill out the form below to add your own comments

Monday, June 8, 2009 - 11:07:50
I like the new ideas, zend filter compress would be really cool, but before adding new stuff it would perhaps be better to bugfix the already existing components, there are enough messages in the bug tracker ;)
Monday, June 8, 2009 - 11:39:22
About each one of the improvements sounds useful ^.^
Monday, June 8, 2009 - 11:42:02
You may note that I am no Zend employee and I will not fix bugs for components which are not coded by me. I have enough to do for my own components. ;-)
Monday, June 8, 2009 - 17:09:44
Nice stuff, Where can we see the planning of the next zend framework?
I’m particularly interested if there’s something planned about image editing (crop/scale/color/…)
Monday, June 8, 2009 - 22:21:06
Don’t ask me :-)
As you may have noted this is not Zend’s homepage. It’s “just” a private blog. I would ask within the official zf mailing lists when you are in need of such data.
Tuesday, June 9, 2009 - 01:08:04
What I really need is a datagrid. A simple grid and maybe also as sortable one. (no, the dojo grid doesn’t count. Its an overload).
A grid as easy as this :
row = grid.addNewRow();
cell = row.addNewCell();
cell.setContent(”some Value”);
grid.render()
Tuesday, June 9, 2009 - 01:19:48
Then propose it… everyone is free to propose components he wants to have integrated.
As you already may imagine I do only propose components which are interesting for my own purposes.
Tuesday, June 9, 2009 - 16:04:01
View Helper for Zend_Date and Zend_Currency are a great idea. I think these would help a lot because both comoponents are most used within views than within controllers. I will have a look into the proposals.
Tuesday, April 17, 2012 - 02:49:45
I agree with you, but dont be too rude !
whatever, great site !