mattsolar123/perse 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mattsolar123/perse

最新稳定版本:1.3.0

Composer 安装命令:

composer require mattsolar123/perse

包简介

README 文档

README

Installation

composer require mattsolar123/perse

Configuration

Add the following to your .env file

PERSE_API_URL=https://api.thelabrador.co.uk
PERSE_API_KEY=
PERSE_SECRET=
PERSE_UTM_SOURCE=

Appointments

Usage

To update an appointment, initialize the AppointmentDetails data object and pass it to the Appointment::update method.

use Mattsolar123\Perse\Gateways\Appointment;
use Mattsolar123\Perse\Data\AppointmentDetails;

$data = new AppointmentDetails(
    appointmentDate: '2024-12-25',
    appointmentTimeFrom: '10:00',
    appointmentTimeTo: '12:00',
    siteId: 'SITE_123',
    customerGuid: 'cust_987654',
    appointmentId: '101',
    appointmentStatus: 'issued'
);

Appointment::update(
    $data
);

Parameter Specifications

Parameter Type Format / Example Required Description
appointmentDate string Y-m-d (2024-10-15) Yes The scheduled date of the visit.
appointmentTimeFrom string H:i (14:00) Yes Start time in 24-hour format.
appointmentTimeTo string H:i (16:00) Yes End time in 24-hour format.
siteId string SITE_123 Yes The unique identifier for the site.
customerGuid string UUID / String Yes Unique Global ID for the customer.
appointmentId string "105" Yes Internal ID (must be cast to string).
appointmentStatus string unissued, issued, cancelled Yes Current state of the appointment.
repId string|null "99" No ID of the assigned representative.
repEmailId string|null rep@company.com Only for issued appointments Email for the representative.
repFirstName string|null John Only for issued appointments Representative's first name.
repLastName string|null Doe Only for issued appointments Representative's last name.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2026-02-09