PHPackages                             nuno/domain-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. [API Development](/categories/api)
4. /
5. nuno/domain-contacts

ActiveLibrary[API Development](/categories/api)

nuno/domain-contacts
====================

PSR-4 Package for Contacts Management Backend with Laravel using API

1.1(6y ago)24[1 issues](https://github.com/NunoLopesPT/DomainContacts/issues)[1 PRs](https://github.com/NunoLopesPT/DomainContacts/pulls)MITPHPPHP ~7.2

Since Oct 7Pushed 6y ago1 watchersCompare

[ Source](https://github.com/NunoLopesPT/DomainContacts)[ Packagist](https://packagist.org/packages/nuno/domain-contacts)[ RSS](/packages/nuno-domain-contacts/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

Domain Contacts
===============

[](#domain-contacts)

Hello there,

This is my playground to study/practice Domain-Driven-Design (DDD) software development and also Design Patterns.

There will be other repositories for this project:

[LaravelContactsAPI](https://github.com/NunoLopesPT/LaravelContactsAPI)

React Repository:

- In my current company I've have experience with JavaScript ES6, creating small aplications, and as Backend Developer till the moment, I found very interesting and decided to explore more the frontend area, lately I've been in a course in Udemy of React/Redux. Which I will apply the best code I can there. The same as the Laravel Package, it is working but it lacks documentation and tests and so it is not available right now.

The goal of this repository is to provide a Domain with all Business Logic with the minimum dependencies so that if we want the same functionality implemented in any framework from Laravel, CodeIgniter, WordPress, Joomla and so on, the duplication of code would be minimum because we have all logic in the same place, easy to adapt.

This Contacts List functionality is relative simple, and probably if the idea is just to have it, with a framework like Laravel the problem could be solved way faster compared with this DDD approach, but if the projects keeps growing in complexity, and has to be maintainable to multiple frameworks, with tests, the production will decrease with code duplication.

\#Instalation

- To build the tables, run `composer run-script migrations`
- To seed the tables with dummy data for testing: `composer run-script seed`
- To rollback all migrations: `composer run-script migrations-rollback`

In this project I will try to have always 100% code coverage inside the `src` folder, integration and unit tests will make sure that the code is SOLID and every line is beeing used, also avoiding errors in future developments. The coverage shouldn't be with with non-sense tests to accomplish the 100% mark, doing the needed tests of the code will bring the coverage.

In this project I will try to implement many approaches even if they are not necessary, because the idea here is to have a playground to experiment patterns, architectures, ideas, try to understand the necessity of them and learn how to implement them.

Right now I'm reading 2 books that I will be base my code on:

- Domain-Driven Design by Eric Evans (2004)
- Design Patterns Elements of Reusable Object-Oriented Software by Erich Gamma, Richard Helm, Ralph Johnson, John M. Vlissides (1994)

I will try to explain all decisions in the code and all feedback will be greatly appreciated, feel free to create issues if you find any.

You can contact me on Linkedin:

To-Do List:

- Solve some @todo's in the code.
- Add run tests by composer run script.
- Bring again coverage to 100%

A special thanks to [@HRADigital](https://github.com/HRADigital), since without him couldn't have learned this much in this short period of time, who mentored me and guided me during 18 months.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

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

Total

2

Last Release

2369d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0c9ab4d28d1f5ebf79371297e0890621a904385d6283caeaf33ae8e3322f35b?d=identicon)[NunoLopesPT](/maintainers/NunoLopesPT)

---

Top Contributors

[![NunoLopesPT](https://avatars.githubusercontent.com/u/20955884?v=4)](https://github.com/NunoLopesPT "NunoLopesPT (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[essa/api-tool-kit

set of tools to build an api with laravel

52680.5k](/packages/essa-api-tool-kit)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[aedart/athenaeum

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

245.2k](/packages/aedart-athenaeum)[jasara/php-amzn-selling-partner-api

A fluent interface for Amazon's Selling Partner API in PHP

1344.8k1](/packages/jasara-php-amzn-selling-partner-api)

PHPackages © 2026

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