定制 nycorp/shortext-php 二次开发

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

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

nycorp/shortext-php

最新稳定版本:1.0.7

Composer 安装命令:

composer require nycorp/shortext-php

包简介

This is my package shortext-php

README 文档

README

Latest Version on Packagist Total Downloads

Shortext – Automate your WhatsApp conversations easily 🚀

Shortext is a smart solution that helps you automate and streamline your customer interactions through WhatsApp Business. Whether it's answering clients, managing support tickets, or sending automated notifications, Shortext puts the power of AI at the service of your customer experience.

With Shortext, you can:
✅ Build a WhatsApp chatbot in just a few clicks
✅ Send automated messages via WhatsApp Business
✅ Integrate the WhatsApp API seamlessly
✅ Improve customer satisfaction with fast, personalized responses

Discover how Shortext can transform your WhatsApp management:
👉 https://shortext.ny-corp.io

Powered by Shortext – Smart automation for WhatsApp Business.

Installation

You can install the package via composer:

composer require nycorp/shortext-php

Usage

Send message:

$sdk =  new ShortextClient(env('SHORTEXT_API_KEY'));
$builder = new MessageBuilder($phone, from: "<PHONE_ID>", lastname: $lastname);
$sdk->sendMessage($builder);

You can send text message with:

$builder->text("hello this is text message");

You can send media message with:

$builder->media("<YOUR FILE URL>", "document", "document.pdf", "Optional caption");
$builder->media("<YOUR FILE URL>", "audio");
$builder->media("<YOUR FILE URL>", "image", caption: "Optional caption");
$builder->media("<YOUR FILE URL>", "video", caption: "Optional caption");

You can send cta_url message with:

$builder->ctaUrl(
    bodyText: "Hello this is body text",
    url: 'https://shortext.ny-corp.io',
    urlCaption: 'Voire les détails'
);

You can send payment message with:

$builder->payment(
    desription: "The message to display with 200 characters max length",
    amount: 100,
    currency: "XAF",
    order_id: "<OPTIONAL ORDER ID>",
    callback_url: "<YOUR OPTIONAL CALLBACK URL>"
);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-03