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 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
php ./bin/phpunit
This bundle is under the MIT license. See the complete license in the bundle
Issues and feature requests are tracked in the Github issue tracker.
Classes of Manolo Salsas | > | PHP Currency Converter API | > | Download .zip .tar.gz | > | Support forum | > | Blog | > | Latest changes |
|
|
Groups | Applications | Files |
Groups |
PHP 5 | Classes using PHP 5 specific features | View top rated classes |
Web services | Web data clipping, SOAP or XML-RPC clients and servers | View top rated classes |
Finances | Money, exchanging, taxes and stocks | View top rated classes |
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Files |
File | Role | Description | ||
---|---|---|---|---|
bin (2 files) | ||||
config (4 files, 2 directories) | ||||
public (1 file) | ||||
src (1 file, 6 directories) | ||||
tests (2 directories) | ||||
.env | Data | Auxiliary data | ||
.env.test | Data | Auxiliary data | ||
.travis.yml | Data | Auxiliary data | ||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
phpunit.xml.dist | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
symfony.lock | Data | Auxiliary data |
Files | / | config |
File | Role | Description | ||
---|---|---|---|---|
packages (6 files, 3 directories) | ||||
routes (1 file) | ||||
bootstrap.php | Class | Class source | ||
bundles.php | Class | Class source | ||
routes.yaml | Data | Auxiliary data | ||
services.yaml | Data | Auxiliary data |
Files | / | config | / | packages |
File | Role | Description | ||
---|---|---|---|---|
dev (2 files) | ||||
prod (2 files) | ||||
test (3 files) | ||||
cache.yaml | Data | Auxiliary data | ||
doctrine.yaml | Data | Auxiliary data | ||
doctrine_migrations.yaml | Data | Auxiliary data | ||
framework.yaml | Data | Auxiliary data | ||
jms_serializer.yaml | Data | Auxiliary data | ||
routing.yaml | Data | Auxiliary data |
Files | / | config | / | packages | / | dev |
File | Role | Description |
---|---|---|
jms_serializer.yaml | Data | Auxiliary data |
routing.yaml | Data | Auxiliary data |
Files | / | config | / | packages | / | prod |
File | Role | Description |
---|---|---|
doctrine.yaml | Data | Auxiliary data |
jms_serializer.yaml | Data | Auxiliary data |
Files | / | config | / | packages | / | test |
File | Role | Description |
---|---|---|
doctrine.yaml | Data | Auxiliary data |
framework.yaml | Data | Auxiliary data |
routing.yaml | Data | Auxiliary data |
Files | / | src |
File | Role | Description | ||
---|---|---|---|---|
Controller (1 file) | ||||
Entity (2 files) | ||||
Exception (1 file) | ||||
Migrations (1 file) | ||||
Repository (2 files) | ||||
Service (1 file) | ||||
Kernel.php | Class | Class source |
Files | / | src | / | Entity |
File | Role | Description |
---|---|---|
CurrencyRate.php | Class | Class source |
CurrencyRateInterface.php | Class | Class source |
Files | / | src | / | Repository |
File | Role | Description |
---|---|---|
CurrencyRateRepository.php | Class | Class source |
CurrencyRateRepositoryInterface.php | Class | Class source |
Files | / | tests | / | Repository |
File | Role | Description |
---|---|---|
AbstractCurrencyRateRepositoryTest.php | Class | Class source |
CurrencyRateRepositoryTest.php | Class | Class source |
Download all files: currencyexchangeapi.tar.gz currencyexchangeapi.zip NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.
|