PHPackages                             rinvex/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. [Database &amp; ORM](/categories/database)
4. /
5. rinvex/contacts

Abandoned → [rinvex/laravel-contacts](/?search=rinvex%2Flaravel-contacts)ArchivedLibrary[Database &amp; ORM](/categories/database)

rinvex/contacts
===============

Rinvex Contacts is a polymorphic Laravel package, for contact management system. You can add contacts to any eloquent model with ease.

v0.0.3(7y ago)01.1kMITPHPPHP ^7.1.3

Since Feb 18Pushed 7y ago1 watchersCompare

[ Source](https://github.com/rinvex/renamed-contacts)[ Packagist](https://packagist.org/packages/rinvex/contacts)[ Docs](https://rinvex.com)[ RSS](/packages/rinvex-contacts/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (13)Versions (5)Used By (0)

Rinvex Contacts
===============

[](#rinvex-contacts)

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

⚠️ This package is **renamed** and now maintained at **[rinvex/laravel-contacts](https://github.com/rinvex/laravel-contacts)**, author suggests using the new package instead. Old package supportes up to Laravel v5.6, and the new one supports Laravel v5.7+

[![Packagist](https://camo.githubusercontent.com/e9866e5e3d8695947538f85758d41c46def1373c6cdbe81b0835a072b9505ae4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72696e7665782f636f6e74616374732e7376673f6c6162656c3d5061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/rinvex/contacts)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/180a57015dd4529b413d894e27fc66993c1c12f9a9e0c6fefe6394d7b8f47e2d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f72696e7665782f636f6e74616374732e7376673f6c6162656c3d5363727574696e697a6572267374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/rinvex/contacts/)[![Code Climate](https://camo.githubusercontent.com/0360b38c367e75b4d3c56d1085d2570fe6ba2114cf7f58f5e30ff22db1a7d15d/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f72696e7665782f636f6e74616374732e7376673f6c6162656c3d436f6465436c696d617465267374796c653d666c61742d737175617265)](https://codeclimate.com/github/rinvex/contacts)[![Travis](https://camo.githubusercontent.com/603527e853b90e00eaef831ffdab3596b9439b7f7916d878d97e6b80231cda4f/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f72696e7665782f636f6e74616374732e7376673f6c6162656c3d5472617669734349267374796c653d666c61742d737175617265)](https://travis-ci.org/rinvex/contacts)[![StyleCI](https://camo.githubusercontent.com/292837ae9bf3b361a22710854495bc78f0710e694826f2c78f67f41b84c90432/68747470733a2f2f7374796c6563692e696f2f7265706f732f39373939313831322f736869656c64)](https://styleci.io/repos/97991812)[![License](https://camo.githubusercontent.com/3b6308ea3264b49e395c2326f5216bf3b23542f6b27feda1c1bf30e5272484a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72696e7665782f636f6e74616374732e7376673f6c6162656c3d4c6963656e7365267374796c653d666c61742d737175617265)](https://github.com/rinvex/contacts/blob/develop/LICENSE)

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

[](#installation)

1. Install the package via composer:

    ```
    composer require rinvex/contacts
    ```
2. Execute migrations via the following command:

    ```
    php artisan rinvex:migrate:contacts

    ```
3. Done!

Usage
-----

[](#usage)

To add contacts support to your eloquent models simply use `\Rinvex\Contacts\Traits\HasContacts` trait.

### Manage your contacts

[](#manage-your-contacts)

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

// Create a new contact
$user->contacts()->create([
    'given_name' => 'Abdelrahman',
    'family_name' => 'Omran',
    'title' => 'Software Architect',
    'organization' => 'Rinvex',
    'email' => 'me@omranic.com',
    'phone' => '+201228160181',
    'source' => 'website',
    'method' => 'call',
    'country_code' => 'eg',
    'language_code' => 'en',
    'birthday' => '1987-06-18',
    'gender' => 'male',
]);

// Create multiple new contacts
$user->contacts()->createMany([
    [...],
    [...],
    [...],
]);

// Find an existing contact
$contact = app('rinvex.contacts.contact')->find(1);

// Update an existing contact
$contact->update([
    'email' => 'iOmranic@gmail.com',
]);

// Delete contact
$contact->delete();

// Alternative way of contact deletion
$user->contacts()->where('id', 123)->first()->delete();

// Get relative contacts collection
$user->relatives;

// Get relative contacts query builder
$user->relatives();

// Get back relative contacts collection
$user->backRelatives;

// Get back relative contacts query builder
$user->backRelatives();

// Get attached contacts collection
$user->contacts;

// Get attached contacts query builder
$user->contacts();
```

Changelog
---------

[](#changelog)

Refer to the [Changelog](CHANGELOG.md) for a full history of the project.

Support
-------

[](#support)

The following support channels are available at your fingertips:

- [Chat on Slack](http://chat.rinvex.com)
- [Help on Email](mailto:help@rinvex.com)
- [Follow on Twitter](https://twitter.com/rinvex)

Contributing &amp; Protocols
----------------------------

[](#contributing--protocols)

Thank you for considering contributing to this project! The contribution guide can be found in [CONTRIBUTING.md](CONTRIBUTING.md).

Bug reports, feature requests, and pull requests are very welcome.

- [Versioning](CONTRIBUTING.md#versioning)
- [Pull Requests](CONTRIBUTING.md#pull-requests)
- [Coding Standards](CONTRIBUTING.md#coding-standards)
- [Feature Requests](CONTRIBUTING.md#feature-requests)
- [Git Flow](CONTRIBUTING.md#git-flow)

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover a security vulnerability within this project, please send an e-mail to [help@rinvex.com](help@rinvex.com). All security vulnerabilities will be promptly contacted.

About Rinvex
------------

[](#about-rinvex)

Rinvex is a software solutions startup, specialized in integrated enterprise solutions for SMEs established in Alexandria, Egypt since June 2016. We believe that our drive The Value, The Reach, and The Impact is what differentiates us and unleash the endless possibilities of our philosophy through the power of software. We like to call it Innovation At The Speed Of Life. That’s how we do our share of advancing humanity.

License
-------

[](#license)

This software is released under [The MIT License (MIT)](LICENSE).

(c) 2016-2018 Rinvex LLC, Some rights reserved.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community7

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

Total

3

Last Release

2832d ago

### Community

Maintainers

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

---

Top Contributors

[![Omranic](https://avatars.githubusercontent.com/u/406705?v=4)](https://github.com/Omranic "Omranic (88 commits)")

---

Tags

laravelbillingmodeleloquentcountrycontactcontactsshippingrinvexpolymorphicprimary

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[spatie/laravel-medialibrary

Associate files with Eloquent models

6.2k43.2M609](/packages/spatie-laravel-medialibrary)[rinvex/laravel-tenants

Rinvex Tenants is a contextually intelligent polymorphic Laravel package, for single db multi-tenancy. You can completely isolate tenants data with ease using the same database, with full power and control over what data to be centrally shared, and what to be tenant related and therefore isolated from others.

823.5k10](/packages/rinvex-laravel-tenants)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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