PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Stefan Ninic   Online PHP Currency Converter   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Online PHP Currency Converter
Allow users convert currency values online
Author: By
Last change:
Date: 4 years ago
Size: 1,613 bytes
 

Contents

Class file image Download

Online Currency Converter

Free online tool used to convert from one currency to another.

Requirements

1. Composer as package manager 2. Redis for cache operations 3. GIT - optional software

Before you begin please ensure that you have required technologies installed and ready to use.

How to setup application

Use GIT to pull this repository into your desired server directory or if you don't have or don't know how to use GIT download this repo manually.

Second, change working directory to application and use composer install to install project dependencies.

Before you can use application you must start Redis server with default parameters. Go to your terminal and type redis-server. NOTE! Please make sure you have {redis_installation_path}/src in your path.

Still in your application root folder execute php application/cronjobs/UpdateRates.php. Run crontab -e and add 0 php {path_to_application}/application/cronjobs/UpdateRates.php >/dev/null 2>&1 to it, this will update rates every hour.

Congratulations, you have finished setting up your application and redis database. You can start using it, point your browser to your application domain.

Additional setup

We'll assume that you use Apache web server.

For gzip compression and caching to work you must enable following Apache modules: - mod_expires - mod_gzip - mod_deflate - mod_headers

If you don't use Apache please consult your web server software provider documentation to how to enable those features.