PHPackages                             ledc/crmeb-delivery-slot-booking - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ledc/crmeb-delivery-slot-booking

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ledc/crmeb-delivery-slot-booking
================================

Crmeb单商户系统-预订配送时间段 &amp; 商品配件 二合一插件。

v7.3.10(9mo ago)03812MITPHPPHP &gt;=7.4

Since May 21Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/ledccn/crmeb-delivery-slot-booking)[ Packagist](https://packagist.org/packages/ledc/crmeb-delivery-slot-booking)[ RSS](/packages/ledc-crmeb-delivery-slot-booking/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (27)Used By (2)

Crmeb单商户系统-预订配送时间段 &amp; 商品配件 二合一插件
===================================

[](#crmeb单商户系统-预订配送时间段--商品配件-二合一插件)

安装
--

[](#安装)

`composer require ledc/crmeb-delivery-slot-booking`

使用说明
----

[](#使用说明)

1. 安装完之后，请执行以下命令，安装插件的数据库迁移文件 `php think install:migrate:crmeb-delivery-slot-booking`
2. 执行数据库迁移 `php think migrate:run`

内置命令
----

[](#内置命令)

1. `php think test:delivery:schedule` 测试配送时间段，打印结果数组

数据表
---

[](#数据表)

1. `delivery_time_slots` 配送时间段表
2. `delivery_schedule_templates` 配送时间段模板表
3. `delivery_schedule_exceptions` 配送时间段异常表

业务逻辑说明
------

[](#业务逻辑说明)

1. 使用 `delivery_time_slots` 定义可以使用的配送时间段
2. 使用 `delivery_schedule_templates` 定义每周每天的配送时间段
3. 如果某一天在 `delivery_schedule_exceptions` 中有定义，则使用 `delivery_schedule_exceptions` 中定义的配送时间段，并通过 `status` 控制当天的配送状态
4. 可以在 `delivery_schedule_templates` 自由组合多个时间段，并通过 `enabled` 控制启用状态，灵活切换配送时间段

助手类
---

[](#助手类)

- `Ledc\DeliverySlotBooking\Helper::get` 获取预订配送时间段
- `Ledc\DeliverySlotBooking\Helper::validate` 验证时间段是否在允许配送的时间段内

扩展建议
----

[](#扩展建议)

- 若需支持多仓库/区域不同配送时间，可在上述表中添加 `region_id` 或 `warehouse_id` 字段。
- 若需要限制每个时间段的最大订单数，可在 `delivery_time_slots` 表中添加 `max_orders` 字段并在业务层控制。

捐赠
--

[](#捐赠)

[![reward](reward.png)](reward.png)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance57

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~3 days

Recently: every ~8 days

Total

26

Last Release

281d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4af14254189bc74029cc40f4206f8006872b0cd092c680201f204a85a490f143?d=identicon)[ledccn](/maintainers/ledccn)

---

Top Contributors

[![ledccn](https://avatars.githubusercontent.com/u/53997080?v=4)](https://github.com/ledccn "ledccn (26 commits)")

### Embed Badge

![Health badge](/badges/ledc-crmeb-delivery-slot-booking/health.svg)

```
[![Health](https://phpackages.com/badges/ledc-crmeb-delivery-slot-booking/health.svg)](https://phpackages.com/packages/ledc-crmeb-delivery-slot-booking)
```

###  Alternatives

[topthink/think-captcha

captcha package for thinkphp

132934.4k68](/packages/topthink-think-captcha)[topthink/think-worker

workerman extend for thinkphp

202227.2k9](/packages/topthink-think-worker)[zoujingli/think-library

Library for ThinkAdmin

8569.8k18](/packages/zoujingli-think-library)[yunwuxin/think-cron

计划任务

17416.2k](/packages/yunwuxin-think-cron)[zzstudio/think-addons

The ThinkPHP6 Addons Package

1518.6k](/packages/zzstudio-think-addons)[topthink/think-annotation

Annotation For ThinkPHP

4831.5k8](/packages/topthink-think-annotation)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
