PHPackages                             staffnowa/address-parser - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. staffnowa/address-parser

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

staffnowa/address-parser
========================

A PHP library splits a full address into country, city, street, and postcode.

0.0.3(2y ago)024MITPHP ^8.0

Since Dec 23Compare

[ Source](https://github.com/StaffNowa/address-parser)[ Packagist](https://packagist.org/packages/staffnowa/address-parser)[ RSS](/packages/staffnowa-address-parser/feed)WikiDiscussions Synced today

READMEChangelog (3)Dependencies (3)Versions (4)Used By (0)

Address Parser
==============

[](#address-parser)

A PHP library splits a full address into country, city, street, and postcode.

Installation
------------

[](#installation)

This project can be installed via Composer:

```
$ composer require staffnowa/address-parser
```

How to use
----------

[](#how-to-use)

You can use the service as follows:

```
$actualAddress = 'Vilkpėdės g. 12, LT-03151 Vilnius, Lithuania';
$parser = AddressParserFactory::createParser($actualAddress);
$parsedAddress = $parser->parseAddress($actualAddress);

var_dump([
     'country' => $parsedAddress->getCountry(),
     'city' => $parsedAddress->getCity(),
     'street' => $parsedAddress->getStreet(),
     'postocde' => $parsedAddress->getPostcode(),
]);

```

The output of this command will be:

```
array(4) {
  ["country"]=>
  string(2) "LT"
  ["city"]=>
  string(7) "Vilnius"
  ["street"]=>
  string(17) "Vilkpėdės g. 12"
  ["postocde"]=>
  string(5) "03151"
}

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~19 days

Total

3

Last Release

884d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/134d5152a36e1582ae6c5332fd92949dd63cb1564a90ab8cec757338c734e882?d=identicon)[d4d](/maintainers/d4d)

---

Top Contributors

[![StaffNowa](https://avatars.githubusercontent.com/u/2715254?v=4)](https://github.com/StaffNowa "StaffNowa (10 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/staffnowa-address-parser/health.svg)

```
[![Health](https://phpackages.com/badges/staffnowa-address-parser/health.svg)](https://phpackages.com/packages/staffnowa-address-parser)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.9M388](/packages/easycorp-easyadmin-bundle)[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[akeneo/pim-community-dev

Akeneo PIM, the future of catalog management is open!

1.0k624.1k86](/packages/akeneo-pim-community-dev)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M568](/packages/shopware-core)[sylius/addressing-bundle

Addressing and zone management for Symfony applications.

34235.1k5](/packages/sylius-addressing-bundle)[sylius/money-bundle

Currencies and money formatting engine bundle for Symfony.

19681.3k26](/packages/sylius-money-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
