承接 bookingbat/engine 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bookingbat/engine

Composer 安装命令:

composer require bookingbat/engine

包简介

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

README 文档

README

Latest Stable Version Total Downloads Build Status

Introduction

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them. Has features for multiple windows of availability within one day, automatically 'fixes' overlapping windows, and can enforce padding between bookings.

Example

Lets set the availability window from 9-11am, and 11:30am-4pm

$availability = new Availability(array(
    array(
        'start' => '09:00:00',
        'end' => '11:00:00'
    ),
    array(
        'start' => '11:30:00',
        'end' => '16:00:00'
    ),
));

Now we'll add a booking from 3:30-4pm & get back the adjusted availability

$newAvailability = $availability->addBooking(array(
    'start' => '15:30',
    'end' => '16:00'
));

$newAvailability will show the actual availability is 9-11am, and 11:30-3:30pm:

array(
    array(
        'start' => '09:00:00',
        'end' => '11:00:00'
    ),
    array(
        'start' => '11:30:00',
        'end' => '15:30:00'
    ),
);

统计信息

  • 总下载量: 177
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 17
  • 点击次数: 2
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 15
  • Watchers: 4
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: OSL
  • 更新时间: 2013-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固