PHPackages                             umpirsky/locurro - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. umpirsky/locurro

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

umpirsky/locurro
================

Local currency converter.

0.2.0(10y ago)34493[1 issues](https://github.com/umpirsky/locurro/issues)propertaryPHPPHP &gt;=5.4

Since Sep 1Pushed 8y ago2 watchersCompare

[ Source](https://github.com/umpirsky/locurro)[ Packagist](https://packagist.org/packages/umpirsky/locurro)[ RSS](/packages/umpirsky-locurro/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

###  [ ![](https://camo.githubusercontent.com/4acdbd12ae1b9a9539be7b30f8cef6cd9678ccb45500067152e333743632afd8/68747470733a2f2f6661726d322e737461746963666c69636b722e636f6d2f313730392f32353039383532363838345f616534643530343635665f6f5f642e706e67) ](https://github.com/umpirsky)

[](#----------------)

 [symfony upgrade fixer](https://github.com/umpirsky/Symfony-Upgrade-Fixer) • [twig gettext extractor](https://github.com/umpirsky/Twig-Gettext-Extractor) • [wisdom](https://github.com/umpirsky/wisdom) • [centipede](https://github.com/umpirsky/centipede) • [permissions handler](https://github.com/umpirsky/PermissionsHandler) • [extraload](https://github.com/umpirsky/Extraload) • [gravatar](https://github.com/umpirsky/Gravatar) • **locurro** • [country list](https://github.com/umpirsky/country-list) • [transliterator](https://github.com/umpirsky/Transliterator)

Locurro [![Build Status](https://camo.githubusercontent.com/403311a48c0d69cfb037cbd558b9f442945fd1ff0ed343b15d6cc6fdec3060fa/68747470733a2f2f7472617669732d63692e6f72672f756d706972736b792f6c6f637572726f2e737667)](https://travis-ci.org/umpirsky/locurro)
===========================================================================================================================================================================================================================================================

[](#locurro-)

💶 Local currency converter.

Use Case
--------

[](#use-case)

Imagine you have an online store, and you are selling products in many different countries. Some of your buyers might live in country that uses currency other then one you use in your store. It would be cool to give them estimation of product costs in their domestic currency.

Here is one example of showing approximate price under the brackets:

[![us](img/us.png)](img/us.png)[![fr](img/fr.png)](img/fr.png)

And it automatically detects users default currency based on their IP address for example.

Pretty cool, huh? 😄

Basic Usage
-----------

[](#basic-usage)

### Convert based on currency

[](#convert-based-on-currency)

```
