sirs/communications
Composer 安装命令:
composer require sirs/communications
包简介
Laravel 5 communications package for SIRS
README 文档
README
Provides migrations, seeds, models, events, artisan commands, and jobs to support communication management.
Installation
Add the following to your composer.json
composer require sirs/communications
php artisan vendor publish
php artisan migrate
Make sure any models that will be communication recipients of messages implement the Sirs\Communications\Contracts\Recipient Interface and use the Sirs\Communications\Traits\RecipientTraits trait.
Make sure any models that will be communication senders of messages implement the Sirs\Communications\Contracts\Sender Interface and use the Sirs\Communications\Traits\SenderTraits trait.
No user interface is included with in this package and is the responsibility of the consumer.
note: Version 4.0.0 requires laravel 5.5 or greater. If you are using an older version you will need to include Sirs\Communications\CommunicationsServiceProvider in config/app.php.
Configuration
- recipientTypes - Array of fully qualified class names for models that will be recipients
- senderTypes - Array of fully qualified class names for models that will be senders
- routeGroupSettings - Array to be applied to communication route group. Example:
['prefix'=>'api', 'middleware' => 'auth'] - global_scopes - Global scope to be applied to CommLogs queries
- addressTypes - Ids of ChannelTypes that represent physical addresses
- channel_types - Array for defining ChannelTypes to be seeded into the database in the format
['slug' => 1]where 1 is the id. - statuses - Array for defining CommunicationStatuses to be seeded into the database in the format
['slug' => 1]where 1 is the id. - reasons - Array for defining CommunicationReasons to be seeded into the database in the format
['slug' => 1]where 1 is the id.
What's included
- Migrations for tables
- channel_types
- channels
- communication_reasons
- communication_statuses
- communication_logs
- Seeds (including common data)
- ChannelType
- CommuncationReason
- CommunicationStatus
- Models
- Channel
- ChannelType
- CommLog
- CommunicationReason
- CommunicationStatus
- Traits
- RecipientTraits
- SenderTraits
- REST API CRUD Controllers for
- communication logs
- channel types
- channels
- communication statuses
- communication reasons
Channels
A channel is a contact info item such as an email address, phone, or mailing address. A channel has a type (typically channel types include phone, email, mailing address, and home address). The channel's address attribute holds the actual "location" of the channel. For example a phone channel's address attribute would have '919-123-1234'. Mailing, Home and other physical addresses should be encoded as json (i.e {"street1":"123 Home St","street2":null,"city":"Town","state":"NC","zip":12345})
Who do I talk to?
- TJ Ward - jward3@email.unc.edu
- Josh Knop - jknop@unc.edu
sirs/communications 适用场景与选型建议
sirs/communications 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.49k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 08 月 07 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 sirs/communications 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 sirs/communications 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.49k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 6
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2017-08-07