PHP class for getting the currency exchange rates from PrivatBank
This PHP class provides a simple way to get the currency exchange rates from PrivatBank by making use of their API. The class has a method called getExchangeRate that takes a currency code and returns the buying exchange rate of that currency in Ukrainian hryvnia. The exchange rates are retrieved from the PrivatBank API and returned in JSON format, which is decoded using the json_decode function. The class is easy to use and can be integrated into any PHP project that requires currency exchange rate information from PrivatBank.