Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/marwan-ahmed-23/currency-converter
- Owner: marwan-ahmed-23
- License: mit
- Created: 2024-12-10T10:21:08.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-26T06:27:27.000Z (21 days ago)
- Last Synced: 2024-12-26T07:30:30.478Z (21 days ago)
- Topics: currency-api, currency-converter, exchange-rates, financial-tools, global-currency, money-conversion, money-exchange, open-source
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!