Giter VIP home page Giter VIP logo

converter's Introduction

Converter

Build Status Software License Latest Version on Packagist Total Downloads

A framework agnostic measurement conversion and formatting package featuring multiple types of measurements and currency conversion.

An open source package by Cartalyst, code well, rock on!

Version Matrix

Version Laravel PHP Version
9.x 11.x >= 8.2
8.x 10.x >= 8.1
7.x 9.x >= 8.0
6.x 8.x >= 7.3
5.x 7.x >= 7.2.5
4.x 6.x >= 7.2
3.x 5.x >= 5.6.4
2.x 5.x >= 5.3.0
1.x 4.1 - 4.2 >= 5.3.0

Documentation

Reader-friendly documentation can be found here.

Using the package, but you're stuck? Found a bug? Have a question or suggestion for improving this package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.

Contributing

Thank you for your interest, here are some of the many ways to contribute.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

License

This software is released under the BSD 3-Clause License.

converter's People

Contributors

brunogaspar avatar garbee avatar geekpivot avatar haleksandre avatar ipalaus avatar rawcreative avatar suwardany avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

converter's Issues

Allow more than one format (for currency)

Scenario:

Some countries with the same currency, but display the currency in a different format. (likely a knock on effect from how they displayed their pre-euro currency).

U.K (gbp) £1,210.59
Germany (eur) 1.210,59€
Ireland (eur) €1,210.59

The use case for having multiple formats would allow the converter to be used without a work around.

My current work around is to have a currency for 'eur' and a currency for 'ie-eur'. The rest of the system which may tie into currencies throughout the website then have to also have a workaround to undo that currency hack.. so when sending values to gateways it can still understand the price is in 'eur' and not 'ie-eur'.

Convert Celcius to Farenheit

Hi I am using package, and i want to convert celsius to Farenheit so i did this in the config

'temperature' => array(

        'celcius' => array(
            'format' => '1 °C',
            'unit'   => 1,
        ),

        'fahrenheit' => array(
            'format' => '1 °F',
            'unit'   => 32,
        ),

the conversion celcius to Farenheit his
T(°F) = T(°C) × 9/5 + 32

How i can do this ?

Can i put on the Farenheit unit this "9/5 + 32"

Laravel 10

Will you be supporting Laravel 10 soon?

Happy to do a PR if it would help.

Thanks

Laravel 5.4

Unable to install package

[Symfony\Component\Debug\Exception\FatalThrowableError]
Call to undefined method Illuminate\Foundation\Application::share()

Service Provider issue

Once pulled in via composer require, and the ServiceProvider is under app.php $providers there is a

[BadMethodCallException]
Call to undefined method [package]

on php artisan

version 1.1.1

PS. this is pulled from source like composite-config. All other catalyst packages are pulled from dist without any issues. If pulled from source, does this bring dependances as well?

Zero value returns a previously processed number

I have a helper function which I use to output prices in my project. Behind the scenes we have a currency selector which I use with the function. Leaving no currency set just results in the value (for instance 100) being returned with the correct formatting $100.00.

If I use the helper on 100 it outputs $100.00
If I then use the helper on 350 it output $350.00

If i then use the helper on 0 it outputs $350.00

Something is not working correctly for it to retain and output the previous converter result

Error using package on Laravel 6.20

Your Environment

  • OS and Version: Ubuntu 18.04.4 LTS
  • PHP Version: 7.2
  • Converter Version: 4.0
  • Laravel: 6.20

Cannot use package, getting the following error:
"Target class [converter..exchanger] does not exist." on line 805 of /home/vagrant/Code/vendor/laravel/framework/src/Illuminate/Container/Container.php

Laravel 9 Support

Expected behaviour

Should be able to install this package on Laravel 9

Actual behaviour

illuminate/cache and illuminate/filesystem are locked to ^8.0.

Happy to do a PR if this isn't already being worked on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.