nycorp / shortext-php
This is my package shortext-php
Fund package maintenance!
NyCorp
Requires
- php: ^8.0
- illuminate/contracts: ^10.0||^11.0||^12.0
- nycorp/lite-api: ^1.1
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1.1||^7.10.0
- orchestra/testbench: ^10.0.0||^9.0.0||^8.22.0
- pestphp/pest: ^3.0
- pestphp/pest-plugin-arch: ^3.0
- pestphp/pest-plugin-laravel: ^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
- spatie/laravel-ray: ^1.35
README
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.