This repository contains a comprehensive list of world Common_Currencies in various formats for ease of integration and use in different environments. The dataset includes essential information such as currency symbols, names, codes, and other related attributes.
- CSV - Simple and easy-to-read format, ideal for data manipulation and analysis.
- JSON - Lightweight format for web development and API integration.
- SQL - Pre-built SQL queries for direct database insertion.
- PHP - Array format for quick usage in PHP-based applications.
- Laravel - Seed data for seamless integration in Laravel projects.
Each currency entry includes the following fields:
symbol
- The currency symbol.name
- Full name of the currency.symbol_native
- The currency symbol in its native form.decimal_digits
- Number of decimal digits used in the currency.rounding
- Information on rounding rules.code
- ISO 4217 currency code.name_plural
- Plural form of the currency name.
Example:
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"name_plural": "US dollars"
}
You can easily import the .csv
file into any spreadsheet software or use it with Python (e.g., pandas
), R, or any data analysis tool.
Use the .json
file for web development, JavaScript applications, or API consumption.
fetch('Common_Currencies.json')
.then(response => response.json())
.then(data => console.log(data))
Directly import the .sql
file into your database:
mysql -u your_username -p your_database < Common_Currencies.sql
The dataset is available as a PHP array for easy integration:
$currencies = include 'Common_Currencies.php';
For Laravel projects:
-
Run the migration:
php artisan migrate --path=/database/migrations/0000_01_01_000090_create_common_currencies_table.php
-
Run the seeder:
php artisan db:seed --class=CommonCurrencySeeder
Feel free to contribute! If you find any missing currencies or have suggestions for improvements, you can:
- Fork the repository.
- Create a new branch (
git checkout -b feature/your-feature
). - Commit your changes (
git commit -m 'Add some feature'
). - Push to the branch (
git push origin feature/your-feature
). - Open a pull request.
This project is open-source and available under the MIT License.
Thank you for using this dataset! 🌍💸