GithubHelp home page GithubHelp logo

kohana-aznrates's Introduction

AZN Rates module for Kohana 3 (KO3) PHP Framework

An open source module to fetch and format AZN exchange rates from www.cbr.ru (The Central Bank of the Russian Federation) for Kohana Framework (KohanaPHP v3). Kohana AZNrates is licensed under the New BSD License.

Quick Start

Download and install

Download the module from downloads section and place into modules folder.

Download and install using Git

First, add the submodule to your Git application:

git submodule add git://github.com/NARKOZ/kohana-aznrates.git modules/aznrates
git submodule update --init

Or clone the the module separately:

cd modules
git clone git://github.com/NARKOZ/kohana-aznrates.git aznrates

Update module using Git

cd modules/aznrates
git submodule update --init

Modify the Config File

Add to modules setting in the application/bootstrap.php this line of code:

Kohana::modules(array(
	...
	'aznrates' => MODPATH.'aznrates',
	...
));

See a result

Go to /aznxrates or /aznxrates/date (date formatted as dd.mm.yyyy, for example: 14.06.2010).

Sample Output

Array
(
    [AZN] => 1
    [RUR] => 0.0376
    [USD] => 1.4727
    [EUR] => 1.7426
    [AUD] => 1.7426
    [JPY] => 1.7426
    [GBP] => 1.7426
    [BYR] => 1.7426
    [LVL] => 1.7426
    [TRY] => 1.7426
    [UAH] => 1.7426
    [EEK] => 1.7426
)

You can add more currency valutes in the classes/model/currency.php file.

kohana-aznrates's People

Contributors

narkoz avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.