webit / edeklaracje-countries
eDeklaracje - Countries Dicrectory
1.0.1
2018-02-02 14:28 UTC
Requires
- php: >=5.4.0
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^4.8
This package is auto-updated.
Last update: 2024-12-20 22:49:13 UTC
README
eDeklaracje - Countries Directory
Installation
Use composer
composer require webit/edeklaracje-countries ^1.0.0
Usage
<?php $factory = new \Webit\EDeklaracje\Countries\DirectoryFactory(); $byCode = $factory->createByCode(); $country = $byCode->lookup('PL'); // returns Country $byName = $factory->createByName(); $byName->lookup('Polska'); // returns Country
Tests
docker-composer run --rm composer docker-composer run --rm phpunit