Given that it’s just a static helper class, I would put the PHP file straight into your components directory. It will automatically be imported by Yii.
It’s not technically different, but I don’t see any point in adding a directory in extensions for a very simple class. If you wished to do that, you would just need to add an additional import in your config file.