PHPackages                             mamunur6286/currex - 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. mamunur6286/currex

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

mamunur6286/currex
==================

This is an currency exchange package.

012PHP

Since Dec 6Pushed 1y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Currency Exchanger
==========================

[](#laravel-currency-exchanger)

The Currex is a Laravel Package for realtime currency exchange.

It allows users to easily exchange and convert currencies in real-time. The application integrates with APIs to fetch up-to-date exchange rates and provides a user-friendly interface for performing currency conversions. It is designed to be scalable, secure, and easy to customize, making it suitable for personal or business use.

### Usage or Installation

[](#usage-or-installation)

```
composer require mamunur6286/currex

```

How to Use Currex
=================

[](#how-to-use-currex)

As a developer we need different types of currency exchange for our various projects. For this situation I developed a laravel package to prevent this problem to handle currency change. It can improve your development life if you use it properly. The used precondition and instruction is given below!

In this tutorial, I'll take you through an example on how to use the Currex Laravel package in just 5 steps. So, let's go ahead and dive into it.

#### 1. Create our folder for our new package.

[](#1-create-our-folder-for-our-new-package)

Create a fresh Laravel project;

```
composer create-project laravel/laravel example-app

```

After a new Laravel install we got to the inside of the project directory by `cd example-app`.

#### 2. Install Currex Package using Composer.

[](#2-install-currex-package-using-composer)

Inside your command prompt navigate to the folder with your project name. In our case: `example-app`, and run the following command:

```
composer require mamunur6286/currex

```

This will initialize the `Currex` package in your project and update the composer dependencies in `composer.json` file.

Next, we need to add our new Service Provider in our config/app.php inside of the `providers[]` array:

```
'providers' => [

    /*
     * Laravel Framework Service Providers...
     */
    Illuminate\Auth\AuthServiceProvider::class,
    //.. Other providers

    Mamunur6286\Currex\Providers\CurrenryServiceProvider::class,

],

```

Awesome! Our service provider is loaded and our package is ready to go! But we don't have any functionality yet... Let's tackle that by adding a Controller for our Project.

#### 5. Basic Usease

[](#5-basic-usease)

Let's start by creating a new `ConvertController` inside of our project Controllers directory, and add the following code:

```
