PHP Classes
elePHPant
Icontem

Online PHP Currency Converter: Allow users convert currency values online

Recommend this page to a friend!
  Info   View files Documentation   View files View files (33)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2019-10-16 (Yesterday) RSS 2.0 feedNot yet rated by the usersTotal: 42 This week: 42All time: 9,655 This week: 9Up
Version License PHP version Categories
cc 1.0MIT/X Consortium ...5PHP 5, Finances
Description Author

This package allows users convert currency values online.

It provides a Web interface to allow the users to enter an amount to be converted from one currency to another using rates stored in a database.

The package can also update the currency rates by pulling them from a remote server regularly.

Name: Stefan Ninic <contact>
Classes: 4 packages by
Country: Bosnia and Herzegovina Bosnia and Herzegovina
Innovation award
Innovation award
Nominee: 2x

 

Details

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.

  Files folder image Files  
File Role Description
Files folder imageapplication (1 file, 8 directories)
Files folder imagepublic (1 file, 2 directories)
Accessible without login Plain text file .zfproject.xml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file composer.lock Data Auxiliary data
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  application  
File Role Description
Files folder imageconfigs (2 files)
Files folder imagecontrollers (3 files)
Files folder imagecronjobs (1 file)
Files folder imageextensions (2 directories)
Files folder imageforms (2 files)
Files folder imagelayouts (1 directory)
Files folder imagemodels (2 files, 1 directory)
Files folder imageviews (1 directory)
  Plain text file Bootstrap.php Class Class source

  Files folder image Files  /  application  /  configs  
File Role Description
  Accessible without login Plain text file application.ini Data Auxiliary data
  Accessible without login Plain text file rates_api.ini Data Auxiliary data

  Files folder image Files  /  application  /  controllers  
File Role Description
  Plain text file ConvertController.php Class Class source
  Plain text file ErrorController.php Class Class source
  Plain text file IndexController.php Class Class source

  Files folder image Files  /  application  /  cronjobs  
File Role Description
  Accessible without login Plain text file UpdateRates.php Example Example script

  Files folder image Files  /  application  /  extensions  
File Role Description
Files folder imageconverter (1 file, 1 directory)
Files folder imagerates (1 file, 3 directories)

  Files folder image Files  /  application  /  extensions  /  converter  
File Role Description
Files folder imageinterfaces (1 file)
  Plain text file Converter.php Class Class source

  Files folder image Files  /  application  /  extensions  /  converter  /  interfaces  
File Role Description
  Plain text file ConverterInterface.php Class Class source

  Files folder image Files  /  application  /  extensions  /  rates  
File Role Description
Files folder imagedrivers (1 file)
Files folder imageinterfaces (4 files)
Files folder imagevalues (2 files)
  Plain text file UpdateRates.php Class Class source

  Files folder image Files  /  application  /  extensions  /  rates  /  drivers  
File Role Description
  Plain text file Redis.php Class Class source

  Files folder image Files  /  application  /  extensions  /  rates  /  interfaces  
File Role Description
  Plain text file RateInterface.php Class Class source
  Plain text file RatesCollectionInterface.php Class Class source
  Plain text file RedisInterface.php Class Class source
  Plain text file UpdateRatesInterface.php Class Class source

  Files folder image Files  /  application  /  extensions  /  rates  /  values  
File Role Description
  Plain text file Rate.php Class Class source
  Plain text file RatesCollection.php Class Class source

  Files folder image Files  /  application  /  forms  
File Role Description
  Plain text file Convert.php Class Class source
  Plain text file SelectElement.php Class Class source

  Files folder image Files  /  application  /  layouts  
File Role Description
Files folder imagescripts (1 file)

  Files folder image Files  /  application  /  layouts  /  scripts  
File Role Description
  Accessible without login Plain text file layout.phtml Example Example script

  Files folder image Files  /  application  /  models  
File Role Description
Files folder imageDbTable (1 file)
  Plain text file Rates.php Class Class source
  Plain text file RatesMapper.php Class Class source

  Files folder image Files  /  application  /  models  /  DbTable  
File Role Description
  Plain text file Rates.php Class Class source

  Files folder image Files  /  application  /  views  
File Role Description
Files folder imagescripts (3 directories)

  Files folder image Files  /  application  /  views  /  scripts  
File Role Description
Files folder imageconvert (1 file)
Files folder imageerror (1 file)
Files folder imageindex (1 file)

  Files folder image Files  /  application  /  views  /  scripts  /  convert  
File Role Description
  Accessible without login Plain text file index.phtml Data Auxiliary data

  Files folder image Files  /  application  /  views  /  scripts  /  error  
File Role Description
  Accessible without login Plain text file error.phtml Example Example script

  Files folder image Files  /  application  /  views  /  scripts  /  index  
File Role Description
  Accessible without login Plain text file index.phtml Example Example script

  Files folder image Files  /  public  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  public  /  css  
File Role Description
  Accessible without login Plain text file global.css Data Auxiliary data

  Files folder image Files  /  public  /  js  
File Role Description
  Accessible without login Plain text file script.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:42
This week:42
All time:9,655
This week:9Up