webparking/laravel-cash
Composer 安装命令:
composer require webparking/laravel-cash
包简介
Laravel API helper for CASH
README 文档
README
Attempt to connect the past and the future in a stable and manageable way. The wrapper is developed using the v3 API with credentials (and not using the generated token). I only worked out the mapping for the endpoints that I needed.
Installation
composer require webparking/laravel-cash
Usage
use Webparking\LaravelCash\Entities\Item; /** @var Item $item */ $item = app()->make(Item::class); // Get collection of items $items = $item->index(); // Fetch item 'foo' $item = $item->get('foo');
Note: the CASH API accepts a maximum of 100 requests per minute
Advanced usage
It's possible to add parameters to an index request. E.g.:
use Webparking\LaravelCash\Entities\Item; app()->make(Item::class)->index('X'); // Creates request for endpoint "2260X" app()->make(Item::class)->index('W|7'); // Creates request for endpoint "2260W|7"
Note: Parameter "X" is universal to all endpoints and causes the CASH response to include field names instead of only the codes.
Useful for testing.
Relations and customers
Customers (2220) are a subset of relations (0101). The customer entity connects you through to the customerGroup and customerGroupTwo.
CASH field definition reference
The notation is the letter + a number which indicated (in most cases) the max length. So L4 is a lowercase word of max 4 characters.
- S = Uppercase text
- L = Lowercase and uppercase text
- N = Numeric
- Y4 = Year (2 chars) & month (2 chars)
- Y2 = Year (2chars)
- I = Decimal (not sure how this notation works)
Development
This repository comes with a handy Docker Compose setup to aid in development.
To get started simply run the following and you're off to the races:
$ make start
Licence and Postcardware
This software is open source and licensed under the MIT license.
If you use this software in your daily development we would appreciate to receive a postcard of your hometown.
Please send it to: Webparking BV, Cypresbaan 31a, 2908 LT Capelle aan den IJssel, The Netherlands
webparking/laravel-cash 适用场景与选型建议
webparking/laravel-cash 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2.95k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 04 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 webparking/laravel-cash 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 webparking/laravel-cash 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 2.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-17