Smart Currency Library [php]