Skip to content

Paradox137/Parser-of-currency-rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Obtaining currency rates (day, period, charts)


project-main


Opportunities

Get currency rates from the CBRF website for any day Get the history of the exchange rate of any currency Drawing a chart with days and currency values for that day Caching the result in the MySQL database (with protection against re-entering the same information)

you can look at the folder gifs and and see what is written above only with the help of animation


Info

The site where the exchange rates come from - https://www.cbr.ru/ - CBRF

Caching in a database based on MEMORY, a class (MemoryCache) that implements the interface between the library and the database checks for the entered parameters, protecting against repeated entering the same information

Chart - Google Charts - https://developers.google.com/chart/interactive/docs/gallery/linechart


To work with

I used XAMPP, you can use whatever you like.

For everything to work, you need to change the config.ini file located in the root of the project You must specify host, username, password, database name and table name (database will auto create after first request)

Default:

$ serverName = "localhost"; $ userName = "root"; $ password = ""; $ dbName = "PHP_Project"; $ tableName = "Currency_Rates";

also don't forget to enable apache server and database


config.ini

; Настройки базы данных(database settings )

; serverName - default:localhost         (хост бд)                 string
; userName   - default:root              (имя пользователя бд)     string
; password   - default:                  (пароль от бд)            string
; dbName     - default:PHP_Project 	 (имя СОЗДАВАЕМОЙ бд)      string
; tableName  - default:Currency_Rates    (имя СОЗДАВАЕМОЙ таблицы) string

[settings]
serverName = "localhost";
userName   = "root";
password   = "";
dbName     = "PHP_Project";
tableName  = "Currency_Rates";
1.online-video-cutter.com.mp4