igzard / huncity-php
Searchable hungarian city list PHP library with zip code
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/igzard/huncity-php
Requires
- php: ^8.3.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.64
- phpstan/phpstan: ^1.12
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2025-10-14 23:41:30 UTC
README
EN: 🌐 Searchable hungarian city list - PHP library
HU: 🌐 Kereshető magyar városlista - PHP könyvtár
English 🇬🇧
Requires PHP 8.3+
Getting started
composer require igzard/huncity-php
Usage
Search by city name
use Igzard\HuncityPhp\CitySearcher; require __DIR__.'/../vendor/autoload.php'; $searcher = new CitySearcher(); $cities = $searcher->find('Bu');
Search by zipcode
use Igzard\HuncityPhp\CitySearcher; require __DIR__.'/../vendor/autoload.php'; $searcher = (new CitySearcher())->findBy(new Igzard\HuncityPhp\Service\Search\Zipcode()); $zipcodes = $searcher->find('2194');
Magyar 🇭🇺
Szükséges PHP 8.3+
Telepítés
composer require igzard/huncity-php
Használat
Városnév alapján keresés
use Igzard\HuncityPhp\CitySearcher; require __DIR__.'/../vendor/autoload.php'; $searcher = new CitySearcher(); $cities = $searcher->find('Bu');
Irányítószám alapján keresés
use Igzard\HuncityPhp\CitySearcher; require __DIR__.'/../vendor/autoload.php'; $searcher = (new CitySearcher())->findBy(new Igzard\HuncityPhp\Service\Search\Zipcode()); $zipcodes = $searcher->find('2194');
Contributing
If you want to contribute to this project and make it better, your help is very welcome.
🚀 Install dependencies with composer:
make composer-install
✅ Run Code quality check:
make code-quality
👷 Run PHPUnit tests:
make phpunit
🎨 Run php-cs-fixer:
make cs-fix
🔥 Run phpstan:
make phpstan
Huncity PHP was created by Gergely Ignácz under the MIT license.