Wednesday
7
January
2009

New file validator

Hy fellows,

Premiere on my blog… the second post on a single day. :-)
Ok… just a short note for you:

I added a WordCount validator for files. It can be used as all other file validators by applying it to a file transfer or file element. And it counts words from textfiles.

->addValidator('WordCount', false, array('min' => 10, 'max' => 200);

I hope you find it usefull.

Greetings
Thomas Weidner
I18N Team Leader, Zend Framework

Zend Framework Advisory Board Member
Zend Certified Engineer for Zend Framework

Back to top
Wednesday
7
January
2009

Validating IBAN numbers

Hy fellows,

for those of you who have to work with bank accounts and money transfer I just added a IBAN validator.
IBAN stands for International Bank Account Number and is actually known to be used in 39 countries.

It’s usage is simple as the usage of every validator:

$validator = new Zend_Validate_Iban();
$iban = 'AT611904300234573201';
if ($validator->isValid($iban)) {
    // IBAN appears to be valid
} else {
    // IBAN is invalid
    foreach ($validator->getMessages() as $message) {
        echo "$messagen";
    }
}

It validates the country (AT), the format (every country uses a different IBAN format) and also the IBAN checksum which is provided within the IBAN string.

I hope you find it usefull and when you are missing anything related to money transfer and bank accounts don’t be shy and write a issue or a mail to me.

Happy frameworking

Greetings
Thomas Weidner
I18N Team Leader, Zend Framework

Zend Framework Advisory Board Member
Zend Certified Engineer for Zend Framework

Back to top
Monday
5
January
2009

Seven Things… things to come… things to know… Tagged by Pàdraic Brady

Thanks to Pàdraic Brady I’ve been tagged in this blog posting chain. You’ve asked for it… so if you don’t want to know more about me you should not read further :-)

So here are my 7to7 for a lucky new year:

7 things to know about me:

  • I actually don’t have a degree in Computional Science. In fact I’ve learned one year in a school to be allowed to study. In 2005 I started to study Computional Science at the Uni of Hagen in Germany. It’s a part-time study because I have a fulltime job, a wife, two children and a house… so my amount of time is really very small :-)
  • My first PC was a C64. This was also my first programming experience and a long long time ago. Many of you young guys even don’t know how a C64 looks like but it was a great thing for it’s time.
  • Before my programming career I was telecommunications engineer. I installed and programmed big PBXes for a big telecom company. This was the first job I learned and I did it for about 5 years.
  • I installed security in the airport of vienna. Yes, I really worked 2 years for a security company and installed hardware, f.e. the security gates, at the airport.
  • I am no black sheep. Even if my avatar is often a blacksheep and even my blog is named “blacksheep’s paradise” I am a real man. :-)
  • I learned Jiu Jitsu (Jūjutsu) for 3 years. I even had the orange belt (4.Kyu). Nowadays I have not enough time to keep it doing anymore but it was interesting. My wife even has the brown belt (1.Kyu) and won the austrian junior mastership.
  • I love to read science fiction and fantasy stories. I think that I have about 300 books at home and I have read them all more than once. When you want to make me happy here is my Amazon Wishlist because I have always space for a good new book :-)

And now 7 people to know about:

  • Weier O’Phinney, who is a great guy and one of the best fellows around Zend Framework I know
  • Rob Allen, who wrote a book about Zend Framework… I was one of the proof readers and got a hardcopy of his new book 3 days ago… you should not miss it
  • Ralf Eggert, who was my first contact to Zend… he was the german leader… nowadays he has much other things to do and let this job also to me :-) He’s a great guy
  • Sebastian Krebs, who is always a great discussion partner on the german forums
  • Andries Seutens, who helps where he can… I’m sorry that we have not meet when I was in Amsterdam, but I am sure that we will have the change somewhere in the future
  • Matthew Ratzloff, who had and have some great ideas for ZF
  • Sebastian Bergmann, a guy you must know. He is the creator of PHPUnit and one of the greatest addition to the php community

Here are the rules for all who pass on the above blog:

  • Link your original tagger(s), and list these rules on your blog
  • Share seven facts about yourself in the post - some random, some wierd
  • Tag seven people at the end of your post by leaving their names and the links to their blogs
  • Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter
Back to top