定制 hl/hiloxa-trigger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

hl/hiloxa-trigger

最新稳定版本:1.0.0

Composer 安装命令:

composer require hl/hiloxa-trigger

包简介

Webhook trigger package for hiloxa

README 文档

README

This package adds state support to models.

To give you a feel about how this package can be used, let's look at a quick example.

Installation

You can install the package via composer:

composer require hl/hiloxa-trigger

You can publish the config file with:

php artisan vendor:publish --provider="HL\HiloxaTrigger\HiloxaTriggerServiceProvider" --tag="hiloxa-trigger-config"

This is the content of the published config file:

return [ /*  * Which base URL to use for trigger.  */ 'base_url' => env('HILOXA_TRIGGER_BASE_URL', 'https://rest.gohighlevel.com/v1'), 'api_key' => env('HILOXA_TRIGGER_API_KEY'), 'trigger' => [ 'create' => true, 'update' => true, ], 'model_data' => \HL\HiloxaTrigger\DTO\CreateDTO::class ];

Imagine a model Customer, which has : name, email and phone. This package allows you to add your model to Hiloxa Contact

For the sake of our example, let's say that,

Here's what the Customer model would look like:

use HL\HiloxaTrigger\Trait\HiloxaTrigger; use HL\HiloxaTrigger\Contracts\HiloxaAble; class Customer extends Model implements HiloxaAble { use HiloxaTrigger; }

Here's a concrete implementation of data class, the CustomerDTO which refer to valid customer data:

class Customer extends Model implements HiloxaAble { use HiloxaTrigger; public function hiloxaDTO($model): HiloxaDTO { return new CustomerDTO($model); } }

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固