Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marwan-ahmed-23/currency-converter

A lightweight PHP project for real-time currency conversion using exchange rates. This API supports multiple currencies and provides a simple interface for developers to integrate into their applications.
https://github.com/marwan-ahmed-23/currency-converter

currency-api currency-converter exchange-rates financial-tools global-currency money-conversion money-exchange open-source

Last synced: 10 days ago
JSON representation

A lightweight PHP project for real-time currency conversion using exchange rates. This API supports multiple currencies and provides a simple interface for developers to integrate into their applications.

Awesome Lists containing this project

README

        

# Currency Converter API

A lightweight and efficient **Currency Converter API** in PHP for real-time currency conversion. This API fetches the latest exchange rates from a public API and provides an easy-to-use interface for currency conversion.

---

## 🚀 Features
- Supports multiple currencies.
- Real-time exchange rates.
- Lightweight and modular design.
- Easy to integrate into any PHP project.

---

## 🔧 Installation

1. Clone this repository:

```bash
git clone https://github.com/marwan-ahmed-23/currency-converter.git
cd currency-converter
```

2. Include the `src` directory in your project.

## 📖 Usage

1. Include the `CurrencyConverter.php` file in your project.

2. Use the API to convert currencies:

```bash
require_once 'CurrencyConverter.php';

$converter = new CurrencyConverter();
$rate = $converter->convert('USD', 'EUR', 100);
echo "100 USD is equal to $rate EUR.";
```

## 📂 Directory Structure
```plaintext
currency-converter/
├── src/
│ └── CurrencyConverter.php
├── examples/
│ └── example.php
├── LICENSE
├── .gitignore
└── README.md
```

## 🤝 Contribution

Feel free to fork this repository and contribute to its development. Submit a pull request with your changes.

## 🌟 Show Your Support

If you found this project helpful, please consider giving it a ⭐ on GitHub. Your support means the world to us!