simple currency converter
v.0.0.2
ユーザーが外部APIから取得したリアルタイム為替レートを使用して通貨を変換できるPHPベースの通貨コンバーターツール。このツールは、PHP、HTML、JQUERY、AJAX、JSON、Bootstrap、CSS、およびMySQLで構築されています。このアプリケーションは、正確な通貨変換を提供し、ユーザーフレンドリーなインターフェイスで結果を表示するように設計されています。
トピック: php 、 mysql 、 blog 、 ajax 、 bootstrap 、 jquery 、 css 、 currency conversion 、 external api integration 、 api integration

リポジトリをクローンします:
git clone https://github.com/yourusername/simple-currency-converter.gitプロジェクトディレクトリに移動します。
cd simple-currency-converterデータベースを設定します:
image_galleryという名前のMySQLデータベースを作成します。mysql -u yourusername -p currency_converter < db/database.sqlデータベース構成を更新します:
config.sample.phpをconfig.phpにコピーします: cp config.sample.php config.phpconfig.phpを開き、データベース構成の詳細を更新します。API統合のセットアップ:
config.phpファイルを更新します。 // API configuration
define( ' API_URL ' , ' https://api.exchangerate-api.com/v4/latest/ ' ) ;
define( ' API_KEY ' , ' your_api_key_here ' ) ;ディレクトリの許可:
chmod 777 assets/uploadsconfig.phpを開き、データベース構成の詳細を更新します。開発サーバーを開始します。
php -S localhost:8000アプリケーションへのアクセス:
http://localhost:8000に移動します。これは、単純通貨コンバーターアプリケーションの基本ファイル構造です。
simple-currency-converter/
│
├── index.html
├── db/
│ └── database.sql
├── include/
│ ├── config.sample.php
│ └── db.php
├── assets/
│ ├── css/
│ │ └── style.css
│ └── js/
│ │ └── script.js
├── src/
│ ├── fetch-rates.php
│ ├── convert.php
│ └── get-currencies.php
├── README.md
└── .gitignore