johnniewalker / xandria
一套用于实现领域驱动设计(DDD)和对象映射模式的类。
v0.0.4
2018-04-15 20:22 UTC
Requires
- php: >=5.2.9
Requires (Dev)
- codeception/codeception: ^2.4
This package is not auto-updated.
Last update: 2024-09-29 04:43:08 UTC
README
一个包含关键面向对象编程模式的库,结合示例应用程序,展示了它们的应用和实现。
包括领域驱动设计、企业架构模式和对象关系映射(ORM)模式。
快速开始
项目主页
该项目是开源的,在GitHub上管理,地址为
获取Xandria
开发者如何获取和测试Xandria库
获取源代码
使用命令行导航到您的工作站上开发库的目录。如有必要,请创建一个目录。
从GitHub克隆存储库。
进入项目目录。
确保已安装Composer。
运行install --dev命令
# composer install --dev
注意,--dev选项确保测试库也被安装。
运行单元测试
仍然在命令行环境中,确保我们在项目的根目录。
运行
# ./vendor/bin/codecept run unit
在项目中使用Xandria
我们假设您在项目中使用了composer。
导航到您的项目根目录。
# pwd
/My/Projects/SomeProject
然后,运行'composer require
'来安装库
# composer require johnniewalker/xandria
为什么叫做Xandria?
该项目以埃及亚历山大城的古亚历山大图书馆命名,它是古代世界最大的图书馆之一。从公元前3世纪开始建设,直到公元前30年罗马征服埃及,它一直是一个重要的学术中心。
据说第一个图书馆被焚毁,摧毁了大量古代知识。让我们希望这个数字化的版本不会面临同样的命运。
Git简介
- https://help.github.com/articles/set-up-git -- GitHub帮助 -- 帮助您开始使用Git/GitHub
- http://eagain.net/articles/git-for-computer-scientists/ -- Git for Computer Scientists - 对Git工作原理的简要概述。
协作
使用Fork & Pull模式。
让我们遵循Pieter Hintjens(2013年)所著的《ZeroMQ》第335页的一些建议。
将所有内容保留在master分支中,并使用GitHub pull请求合并多个贡献者的更改。
请参阅:https://help.github.com/articles/using-pull-requests -- Fork & Pull Model
文档格式化
文档和消息目前使用Markdown格式。
- https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet -- 快捷方式
- https://help.github.com/articles/markdown-basics -- Markdown基础知识
- https://help.github.com/articles/github-flavored-markdown -- GitHub Flavored Markdown