Skip to content
generated from igzard/php-skeleton

🌐 Searchable hungarian city list without database - PHP library

License

Notifications You must be signed in to change notification settings

igzard/huncity-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

36a4c5d · Jan 14, 2025

History

9 Commits
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025
Jan 14, 2025

Repository files navigation

Huncity-php

EN: 🌐 Searchable hungarian city list - PHP library

HU: 🌐 Kereshető magyar városlista - PHP könyvtár

Tests passed Total Downloads Latest Version


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.

About

🌐 Searchable hungarian city list without database - PHP library

Topics

Resources

License

Stars

Watchers

Forks

Languages