abivia/cogs
Composer 安装命令:
composer require abivia/cogs
包简介
Interfaces for Connectable Real World Entities.
关键字:
README 文档
README
Cogs is a suite of interfaces for common objects, primarily used in business and ecommerce (but not limited to that scope).
Cogs is a work in progress. The interfaces are not complete or stable. There are more interfaces yet to be defined. The interfaces have been heavily influenced by OASIS recommendations.
The intent is to achieve some level of interoperability between applications by having them conform to these interfaces.
Suggestions, comments, and contributions are welcome.
Installation
Via composer:
composer require abivia/cogs
Enums
InvoiceTransactionType
This defines the types of transactions that can be applied to an invoice (debit, credit, or non balance affecting)
PartyType
This identifies the two basic types of Party: individuals and organizations.
Interfaces
Most interfaces are designed to represent objects that are stored in a data set and are retrievable by a unique identifier.
AddressInterface
An AddressInterface represents an address that's stored in a data set. The interface is adapted from commerceguys/addressing which in turn is adapted from open standards. Cogs uses an international nomenclature for addresses, so there are accessors for locality() rather than city().
AddressProperties
The AddressProperties interface defines accessors for objects that contain address-like information, for example a geocoded location.
ChannelInterface
A ChannelInterface defines a Communications Channel, a way to contact a party independent of medium. A channel can define a connection by phone, email, chat, etc.
HistoryInterface
A HistoryInterface represents an interaction with an object. This is intentionally abstract. A history record could document up/down transitions in a service or log a history of conversations with a Party.
InvoiceInterface
This interface provides a standard definition for an invoice, including the related parties, amounts, tax rules, and status.
InvoiceTransactionInterface
This interface represents anything that affects the balance or payment parameters of an invoice.
PartyInterface
The Party interface represents a person or organizational entity (corporation, government, school, etc.).
PartyRelationshipInterface
The Party relationship interface defines a link between two parties. The interface is used to represent commercial relations (vendor, supplier), person to person relations (manager, employee), etc.
TaxItemInterface
The Tax Item interface represents the application of a Tax Rate. The rate may be applied to an invoice, to individual items in an invoice, or at any point where a specific tax amount is payable.
TaxRateInterface
A Tax Rate is an amount of tax that will be applied to a transaction.
Donations welcome
If you're getting something out of Cogs, you can sponsor us in any amount you wish using Liberapay
Liberapay is itself run on donations and charges no fees beyond bank charges.
abivia/cogs 适用场景与选型建议
abivia/cogs 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 43 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 05 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「abivia」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 abivia/cogs 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 abivia/cogs 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 abivia/cogs 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
General Ledger and Journal Accounting Package for Laravel with JSON API
General Ledger and Journal Accounting Package for Laravel with JSON API
Plaid for Laravel
Library for working with monetary values, a BCMath library with rounding support.
Geocoding support.
A small template engine.
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-02