PHPackages                             viitortest/addressable - 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. viitortest/addressable

ActiveLibrary

viitortest/addressable
======================

Provide the address book to store multiple address at one place

12PHP

Since Apr 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/vc-dhavaljoshi/addressable)[ Packagist](https://packagist.org/packages/viitortest/addressable)[ RSS](/packages/viitortest-addressable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Addressable
===========

[](#addressable)

**Addressable** is a polymorphic Laravel package, for contact management system. You can add address to any eloquent model with ease.

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

[](#installation)

1. Install the package via composer:

    ```
    composer require viitortest/addressable
    ```
2. Publish resources (migrations and config files):

    ```
    php artisan vendor:publish --tag=address-config
    ```
3. If you need to modify table name go to below path and change table name

    ```
       config/addressable.php
    ```
4. Execute migrations via the following command:

    ```
    php artisan migrate
    ```
5. Done!

Usage
-----

[](#usage)

To add address support to your eloquent models simply use `\Viitortest\Addressable\Traits\HasContacts` trait. `HasAddress`

### Manage your address

[](#manage-your-address)

```
// Get instance of your model
$user = new \App\Models\User::find(1);

// address parameter are to store address.
$request = [
    'formatted_address' => 'Avdhesh House, 303, opp. Gurudwara, Bodakdev, Ahmedabad, Gujarat 380054',
    'latitude' => '29.00',
    'longitude' => '49.00',
    'order' => 1,
    'extra_attributes' => ["country"=>"india","city"=>"ahmedabad","post"=>380051]
];

// Create a single address
$request = [
    'formatted_address' => 'Avdhesh House, 303, opp. Gurudwara, Bodakdev, Ahmedabad, Gujarat 380054',
    'latitude' => '29.00',
    'longitude' => '49.00',
    'order' => 1,
    'extra_attributes' => ["country"=>"india","city"=>"ahmedabad","post"=>380051]
];
$user->addAddress($request);

// Get attached address collection
$user->getAddress;

// Get attached address query builder
$user->getAddress();

// Removed address
$user->removeAddress();
```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e9e577b969b55680a775f1a4580b56772f256f7e481d854a28f93a59b7e1eee?d=identicon)[dhavaljoshi](/maintainers/dhavaljoshi)

---

Top Contributors

[![vc-dhavaljoshi](https://avatars.githubusercontent.com/u/37901172?v=4)](https://github.com/vc-dhavaljoshi "vc-dhavaljoshi (9 commits)")

### Embed Badge

![Health badge](/badges/viitortest-addressable/health.svg)

```
[![Health](https://phpackages.com/badges/viitortest-addressable/health.svg)](https://phpackages.com/packages/viitortest-addressable)
```

PHPackages © 2026

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