Skip to content

PETAF/currency-conversion-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 

Repository files navigation

currency-conversion-backend

The backend for cache API for PETA latino donation form

Features

  • Creates a new text file (/shared/fixer-io.txt) that contains the data for the currency rates
  • The cache text files last one day before calling in the fixer.io API to prevent calling the fixer.io API multiple times when the donation form for the PETA latino loads
  • Does not create a new text file if the URL is invalid or it has reached the limit to call the API
  • Echoes the error when the cache API has an error
  • Set the HTTP status code for the uptime-monitor.php if the modified cachee file is more than 1 day and 30 minutes to alert uptime monitor

Requirements

  • You need to have a writeable /shared/ folder under your DOCUMENT_ROOT for this script to work.
  • Require personal access token from 4site in order to automatically create a Github issue

About

The backend for cache API for PETA latino donation form

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%