nuno/domain-contacts
Composer 安装命令:
composer require nuno/domain-contacts
包简介
PSR-4 Package for Contacts Management Backend with Laravel using API
README 文档
README
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:
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: https://www.linkedin.com/in/nuno-lopes/
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, since without him couldn't have learned this much in this short period of time, who mentored me and guided me during 18 months.
nuno/domain-contacts 适用场景与选型建议
nuno/domain-contacts 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 4 次下载、GitHub Stars 达 2, 最近一次更新时间为 2019 年 11 月 20 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 nuno/domain-contacts 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 nuno/domain-contacts 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-11-20