exchange | Check Exchange Rates for any currency in Laravel

 by   worksome PHP Version: v1.0.0 License: MIT

kandi X-RAY | exchange Summary

kandi X-RAY | exchange Summary

exchange is a PHP library typically used in Ethereum, Bitcoin applications. exchange has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Check exchange rates for any currency in Laravel. If your app supports multi-currency, you'll no doubt need to check exchange rates. There are many third party services to accomplish this, but why bother reinventing the wheel when we've done all the hard work for you?. Exchange provides an abstraction layer for exchange rate APIs, with a full suite of tools for caching, testing and local development.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              exchange has a low active ecosystem.
              It has 80 star(s) with 3 fork(s). There are 7 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 1 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of exchange is v1.0.0

            kandi-Quality Quality

              exchange has no bugs reported.

            kandi-Security Security

              exchange has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              exchange is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              exchange releases are available to install and integrate.
              Installation instructions, examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of exchange
            Get all kandi verified functions for this library.

            exchange Key Features

            No Key Features are available at this moment for exchange.

            exchange Examples and Code Snippets

            Exchange,Testing
            PHPdot img1Lines of Code : 9dot img1License : Permissive (MIT)
            copy iconCopy
            it('retrieves exchange rates', function () {
                Exchange::fake(['GBP' => 1.25, 'USD' => 1.105]);
                
                $this->get(route('my-app-route'))
                    ->assertOk();
                    
                Exchange::assertRetrievedRates();
            });
            
            composer test
              
            Exchange,Usage,Null
            PHPdot img2Lines of Code : 4dot img2License : Permissive (MIT)
            copy iconCopy
            use Worksome\Exchange\Facades\Exchange;
            
            $exchangeRates = Exchange::rates('USD', ['GBP', 'EUR']);
            
            $rates = $exchangeRates->getRates(); // ['GBP' => 1.0, 'EUR' => 1.0]
              
            Exchange,Installation
            PHPdot img3Lines of Code : 2dot img3License : Permissive (MIT)
            copy iconCopy
            composer require worksome/exchange
            
            php artisan exchange:install
              
            Cache the exchange rates file .
            javadot img4Lines of Code : 14dot img4License : Permissive (MIT License)
            copy iconCopy
            @Loggable
                @Cacheable(lifetime = 2, unit = TimeUnit.SECONDS)
                public static String cacheExchangeRates() {
                    String result = null;
                    try {
                        URL exchangeRateUrl = new URL("https://api.exchangeratesapi.io/latest");
                       
            Aggregate the exchange exchange .
            javadot img5Lines of Code : 13dot img5License : Non-SPDX
            copy iconCopy
            @Override
              public Exchange aggregate(Exchange oldExchange, Exchange newExchange) {
                if (oldExchange == null) {
                  return newExchange;
                }
            
                var in1 = (String) oldExchange.getIn().getBody();
                var in2 = (String) newExchange.getIn().getBo  
            Exchange response processor error handling .
            javadot img6Lines of Code : 12dot img6License : Permissive (MIT License)
            copy iconCopy
            private static Mono exchangeFilterResponseProcessor(ClientResponse response) {
                    HttpStatus status = response.statusCode();
                    if (HttpStatus.INTERNAL_SERVER_ERROR.equals(status)) {
                        return response.bodyToMono(String.class)
                  

            Community Discussions

            No Community Discussions are available at this moment for exchange.Refer to stack overflow page for discussions.

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install exchange

            You can install the package via composer.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/worksome/exchange.git

          • CLI

            gh repo clone worksome/exchange

          • sshUrl

            git@github.com:worksome/exchange.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link