PHPackages                             carpcai/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. carpcai/address-parser

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

carpcai/address-parser
======================

A PHP library covers PHP 5.4 to 7.3, split an address street to street, states, city, zipcode.

1.2.0(6y ago)1425.4k↓71.3%9MITPHPPHP ^5.6 || ^7.0

Since Mar 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/carpcai/address-parser)[ Packagist](https://packagist.org/packages/carpcai/address-parser)[ RSS](/packages/carpcai-address-parser/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

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

[](#address-parser)

[![Build Status](https://camo.githubusercontent.com/d2f9ed119e134d8661c899c07bde5280bd823d021e1fe6b2bb21721d5ee5431f/68747470733a2f2f7777772e7472617669732d63692e6f72672f636172706361692f616464726573732d7061727365722e7376673f6272616e63683d6d6173746572)](https://www.travis-ci.org/carpcai/address-parser)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ed8e1d73796d048cbe9d2a4d1b52bc91bcbb8f7dfb17090a181fc5b68c76ea4d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636172706361692f616464726573732d7061727365722f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/carpcai/address-parser/?branch=master)[![Build Status](https://camo.githubusercontent.com/5fd49a8a3bc9531baac77917b7754cb3e1e1a4b26656e1ca0eb9ee5bf62044f1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636172706361692f616464726573732d7061727365722f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/carpcai/address-parser/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/021a3b5cb9c3d1ab1014d2952619af48e21916679067cb01f90f20f4ab852350/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636172706361692f616464726573732d7061727365722f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)

A PHP library covers PHP 5.4 to 7.3, split an address street to street, states, city, zipcode.

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

[](#installation)

This project can be installed via Composer:

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

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

[](#how-to-use)

You can use the service as follows:

```
$addressObj = Parser::newParse('555 Test Drive, Testville, CA 98773');

var_dump([
    'country'      => $addressObj->country,
    'state'        => $addressObj->state,
    'city'         => $addressObj->city,
    'addressLine1' => $addressObj->addressLine1,
    'addressLine2' => $addressObj->addressLine2,
    'zipcode'      => $addressObj->zipcode,
]);

```

The output of this command will be:

```
array(6) {
  ["country"]=>
  string(2) "US"
  ["state"]=>
  string(2) "CA"
  ["city"]=>
  string(9) "Testville"
  ["addressLine1"]=>
  string(14) "555 Test Drive"
  ["addressLine2"]=>
  string(0) ""
  ["zipcode"]=>
  string(5) "98773"
}

```

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity36

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~346 days

Total

2

Last Release

2312d ago

PHP version history (2 changes)1.1.0PHP ^5.4 || ^7.0

1.2.0PHP ^5.6 || ^7.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/17467462?v=4)[Carp Choi](/maintainers/carpcai)[@carpcai](https://github.com/carpcai)

---

Top Contributors

[![carpcai](https://avatars.githubusercontent.com/u/17467462?v=4)](https://github.com/carpcai "carpcai (30 commits)")[![dorgan](https://avatars.githubusercontent.com/u/464851?v=4)](https://github.com/dorgan "dorgan (10 commits)")[![paulschreiber](https://avatars.githubusercontent.com/u/86784?v=4)](https://github.com/paulschreiber "paulschreiber (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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