Skip to content

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.

License

Notifications You must be signed in to change notification settings

marwan-ahmed-23/currency-converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    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:

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

📂 Directory Structure

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!

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages