rallisf1 / greek-postal-code-db
Read-only Greek postal-code data for PHP, backed by an embedded SQLite database.
Package info
github.com/rallisf1/greek-postal-code-db
Language:Go
pkg:composer/rallisf1/greek-postal-code-db
Requires
- php: ^8.1
- ext-mbstring: *
- ext-pdo: *
- ext-pdo_sqlite: *
Requires (Dev)
- phpunit/phpunit: ^10.5
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-09 21:55:46 UTC
README
Language clients for the Greek Postal Code DB. Each package embeds the same read-only library.sqlite asset and is versioned and published independently.
Features
- 1328 postal codes with hierarchy information (region, municipality, community, etc)
- partial street database (which street and numbers belong to each postal code)
- official government codes from Kallikratis (WIP)
- sqlite database included for offline use
- list / get / search / validateAddress functions
Packages
typescript: Node.js and Bun client, published as@rallisf1/greek-postal-code-db.php: PHP 8.1+ Composer client, published from this repository root asrallisf1/greek-postal-code-db.go: Go client, imported asgithub.com/rallisf1/greek-postal-code-db/go.python: Python client; install from this monorepo with pip's#subdirectory=pythonURL.rust: Rust crate; use Cargo's Gitsubdirectory = "rust"support until crates.io publication.csharp: .NET 10 client, packaged for NuGet asGreekPostalCodeDb.java: Java 21 client, packaged for Maven Central asio.github.rallisf1:greek-postal-code-db.dart: native Dart client, published asgreek_postal_code_db.flutter: Flutter asset-bundle adapter, published asgreek_postal_code_db_flutter.swift: native Swift Package Manager client for Linux and Apple platforms.models: private TypeScript types used internally; it is not published.demo: internal Cloudflare Pages/D1 demo application; it is not published.
Contributing
Packages
These packages have been almost entirely AI generated. Bug fixes through PRs are welcome. For new features open an issue first, as it has to be implemented in all clients.
Dataset
PRs for ./library.sqlite are welcome as long as they are accompanied with the changes in SQL format.
Data sources used
- ELTA street search form
- OpencartGreece Post Code API
- Central Association of chambers of commerce in Greece (GEMI)
- data.gov.gr
- locationiq.com