Details
Currency exchange REST API ![Build Status](https://travis-ci.org/msalsas/currency-exchange.svg?branch=master)
Currency exchange is a REST API made with Symfony.
Documentation
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
Installation
git clone https://github.com/msalsas/currency-exchange.git
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
Testing
php ./bin/phpunit
License
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.
|
Name: |
PHP Currency Converter API |
Base name: |
currencyexchangeapi |
Description: |
Provides an API to return currency exchange rates |
Version: |
- |
PHP version: |
5 |
License: |
Custom (specified in a license file) |
|
|
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.
|
Files |
|
File |
Role |
Description |
console |
Class |
Class source |
phpunit |
Data |
Auxiliary data |
File |
Role |
Description |
index.php |
Example |
Example script |