webit/edeklaracje-countries

eDeklaracje - Countries Dicrectory

1.0.1 2018-02-02 14:28 UTC

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