PHP Classes


Recommend this page to a friend!
  Classes of Manolo Salsas   PHP Currency Converter API   Download  
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Currency Converter API
Provides an API to return currency exchange rates
Author: By
Last change:
Date: 3 years ago
Size: 1,607 bytes


Class file image Download

Currency exchange REST API Build Status

Currency exchange is a REST API made with Symfony.


GET /currency/{currencyFrom}/{currencyTo}/?number=number
example: GET /currency/eur/dol/?number=3.45

POST /currency/{currency}
parameters: json => {rateToEur, symbol}
example: POST /currency/eur with {rateToEur: 1, symbol: "?"}

PUT /currency/{currency}
parameters: json => {rateToEur, symbol}
example: PUT /currency/eur with {rateToEur: 1, symbol: "eur"}

DELETE /currency/{currency}
example: DELETE /currency/eur


git clone

cd currency-exchange

composer install

php bin/console doctrine:database:create

php bin/console doctrine:database:create --env=test

php bin/console doctrine:migrations:migrate

php bin/console doctrine:migrations:migrate --env=test

symfony server:start 

you will need:

- The Symfony installer

- php-sqlite3 as database is sqlite by default


php ./bin/phpunit


This bundle is under the MIT license. See the complete license in the bundle

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker.