PHPackages                             subdesign/valutabank - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. subdesign/valutabank

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

subdesign/valutabank
====================

valutabank.hu data parser package

113PHP

Since Apr 16Pushed 11y ago1 watchersCompare

[ Source](https://github.com/subdesign/laravel-valutabank)[ Packagist](https://packagist.org/packages/subdesign/valutabank)[ RSS](/packages/subdesign-valutabank/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Valutabank.hu parser package for Laravel 5
==========================================

[](#valutabankhu-parser-package-for-laravel-5)

With this package you can get the actual HUF (Hungarian Forint) value of different currencies.

Installation
------------

[](#installation)

Install with the following Composer command

```
$ composer require subdesign/valutabank:dev-master

```

Add the following line in the `app/config/app.php` file into the *service provider* array

```
'Subdesign\Valutabank\Provider\ValutabankServiceProvider',

```

And add the facade to the *aliases* array

```
'Valutabank' => 'Subdesign\Valutabank\Facade\Valutabank',

```

Publish the config file

```
$ php artisan vendor:publish

```

Setting up
----------

[](#setting-up)

You can edit the config file `app/config/valutabank.php`, options are

```
return [
	'currencies' => ['USD', 'EUR', 'CHF'], // array of currencies or the string "all" if you want all (array/string)
	'returntype' => 'array',               // html OR array OR json (string)
	'show_bank'	 => true, 				   // show the bank name for rate
	'curl' 		 => true,	               // use CURL (bool)
	'cache'		 => true,	               // use caching of server data (bool)
	'cache_ttl'	 => 60,	                   // if caching enabled, set minutes for TTL value (integer)
	'icon_path'  => '/assets/images/',     // relative path (from public/) to the icon images (string)
	'icon_name'  => 'icon',                // icon name prefix. it will be "icon-usd", "icon-eur" etc. (string)
	'icon_ext'   => 'jpg'                  // extension of icon image files (string)
];

```

Usage
-----

[](#usage)

If you use it in your controller, `use` the Facade of the package like

```
use Subdesign\Valutabank\Facade\Valutabank;

```

then

```
$result = Valutabank::get();

```

or you can add a backslash to the facade

```
$result = \Valutabank::get();

```

Dependency
----------

[](#dependency)

The package uses `anlutro/php-curl` for optionally replace `file_get_contents()` in the code, if the latter is disabled in your server for some reason.

Example data
------------

[](#example-data)

Getting the USD - HUF exchange rate as `array`

```
array(2) {
  ["lastUpdate"]=>
  string(19) "2015-04-15 14:40:17"
  ["USD"]=>
  array(3) {
    ["buying_rate"]=>
    array(2) {
      ["value"]=>
      string(6) "273.71"
      ["bank"]=>
      string(8) "KDB Bank"
    }
    ["selling_rate"]=>
    array(2) {
      ["value"]=>
      string(6) "284.31"
      ["bank"]=>
      string(8) "KDB Bank"
    }
    ["icon"]=>
    string(27) "/assets/images/icon-usd.jpg"
  }
}

```

Notes
-----

[](#notes)

The source code is PSR-1 and PSR-2 compilant.
Please show the link of valutabank.hu somewhere in your view code below the rendered data, for credits.

Copyright
---------

[](#copyright)

© 2015 Barna Szalai

License
-------

[](#license)

[MIT](http://opensource.org/licenses/MIT)

Contact
-------

[](#contact)

twitter: @devartpro
email:
irc: @BarnaSzalai at #laravel.hu/#laravel (freenode)
slackchat:

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181743840?v=4)[Bence Szalai](/maintainers/bszalai)[@bszalai](https://github.com/bszalai)

---

Top Contributors

[![subdesign](https://avatars.githubusercontent.com/u/691695?v=4)](https://github.com/subdesign "subdesign (9 commits)")

### Embed Badge

![Health badge](/badges/subdesign-valutabank/health.svg)

```
[![Health](https://phpackages.com/badges/subdesign-valutabank/health.svg)](https://phpackages.com/packages/subdesign-valutabank)
```

###  Alternatives

[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)[jms/serializer-bundle

Allows you to easily serialize, and deserialize data of any complexity

1.8k89.3M627](/packages/jms-serializer-bundle)[hassankhan/config

Lightweight configuration file loader that supports PHP, INI, XML, JSON, and YAML files

97513.5M170](/packages/hassankhan-config)[meyfa/php-svg

Read, edit, write, and render SVG files with PHP

54613.9M42](/packages/meyfa-php-svg)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
