PHPackages                             tadasei/laravel-contacts - 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. tadasei/laravel-contacts

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

tadasei/laravel-contacts
========================

A package that provides stubs for managing contact info associations with models

v2.0.0(8mo ago)226MITPHPPHP ^8.1.0

Since Jul 26Pushed 8mo agoCompare

[ Source](https://github.com/Tadasei/laravel-contacts)[ Packagist](https://packagist.org/packages/tadasei/laravel-contacts)[ RSS](/packages/tadasei-laravel-contacts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (7)Versions (11)Used By (0)

Tadasei/laravel-contacts
========================

[](#tadaseilaravel-contacts)

This package provides stubs for contacts association (with various contact methods) to Eloquent models.

Features
--------

[](#features)

- Quickly generate contacts migrations, models, factories and enums.
- Customize and extend generated code to fit your project's needs.
- Improve development efficiency by eliminating repetitive tasks.

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

[](#installation)

You can install the package via Composer by running:

```
composer require tadasei/laravel-contacts --dev
```

### Publishing contacts handling utilities

[](#publishing-contacts-handling-utilities)

To publish contacts handling utilities, use the following command:

```
php artisan contacts:install
```

### Configuring The Country Model

[](#configuring-the-country-model)

This package references an `App\Models\Country` model and requires manual supply of its implementation to add phone code support through a `phone_code` attribute for the following contact method types:

- `landline`
- `mobile`
- `fax`

To use a different model, edit `App\Models\ContactMethod` and `Database\Factories\ContactMethodFactory` accordingly.

### Configuring Contactable Models

[](#configuring-contactable-models)

To extend or define which models are considered *contactable*, edit:

- `App\Enums\ContactableType`: Add your model class names to this enum.
- `Database\Factories\ContactFactory`: Customize logic to generate contacts for your specific model types.

This allows full flexibility in defining how your application links contacts to models.

### Running migrations

[](#running-migrations)

To create the related `contacts` and `contact_methods` tables, run the generated migrations using the following command:

```
php artisan migrate
```

Usage:
------

[](#usage)

```
$contact = $customer->contacts()->create([
    'name' => 'John Doe',
]);

$contact->contactMethods()->create([
    'type' => 'email',
    'value' => 'john@example.com',
]);
```

Customization
-------------

[](#customization)

The generated code serves as a starting point. You can customize and extend it according to your project's requirements. Modify the generated utilities as needed.

Contributing
------------

[](#contributing)

Contributions are welcome! If you have suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.

License
-------

[](#license)

This package is open-source software licensed under the [MIT license](LICENSE).

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance61

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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 ~4 days

Total

10

Last Release

244d ago

Major Versions

v1.5.0 → v2.0.02025-09-10

### Community

Maintainers

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

---

Top Contributors

[![Tadasei](https://avatars.githubusercontent.com/u/93480860?v=4)](https://github.com/Tadasei "Tadasei (14 commits)")

---

Tags

laravelstubsbackendcontact

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/tadasei-laravel-contacts/health.svg)

```
[![Health](https://phpackages.com/badges/tadasei-laravel-contacts/health.svg)](https://phpackages.com/packages/tadasei-laravel-contacts)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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