feat: install ultra-message package via Composer path

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ghassan Yusuf 2026-05-19 12:59:15 +03:00
parent 11e94889b2
commit 225719b7c9
4 changed files with 79 additions and 3 deletions

View File

@ -63,3 +63,9 @@ AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}"
ULTRAMSG_INSTANCE_ID=
ULTRAMSG_TOKEN=
ULTRAMSG_WEBHOOK_SECRET=
ULTRAMSG_WEBHOOK_PATH=ultra-message/webhook
ULTRAMSG_ENABLED=true

View File

@ -5,12 +5,19 @@
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"repositories": [
{
"type": "path",
"url": "../ultra-message"
}
],
"require": {
"php": "^8.2",
"barryvdh/laravel-dompdf": "^3.1",
"laravel/framework": "^12.0",
"laravel/tinker": "^2.10.1",
"phpoffice/phpspreadsheet": "^5.7",
"promoseven/ultra-message": "*",
"spatie/laravel-permission": "^6.25"
},
"require-dev": {
@ -85,6 +92,6 @@
"php-http/discovery": true
}
},
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true
}

57
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "410e0c46740d0acdc1c7049ae3f0e698",
"content-hash": "2e7e9aaaedaec1e83a6d6b3e82228dda",
"packages": [
{
"name": "barryvdh/laravel-dompdf",
@ -3278,6 +3278,59 @@
],
"time": "2025-12-27T19:41:33+00:00"
},
{
"name": "promoseven/ultra-message",
"version": "dev-master",
"dist": {
"type": "path",
"url": "../ultra-message",
"reference": "36323902378c10fffd7c2f795360f06072b2fd51"
},
"require": {
"illuminate/http": "^11.0|^12.0",
"illuminate/notifications": "^11.0|^12.0",
"illuminate/routing": "^11.0|^12.0",
"illuminate/support": "^11.0|^12.0",
"php": "^8.2"
},
"require-dev": {
"orchestra/testbench": "^10.0",
"phpunit/phpunit": "^11.0"
},
"type": "library",
"extra": {
"laravel": {
"providers": [
"PromoSeven\\UltraMessage\\UltraMessageServiceProvider"
],
"aliases": {
"UltraMessage": "PromoSeven\\UltraMessage\\Facades\\UltraMessage"
}
}
},
"autoload": {
"psr-4": {
"PromoSeven\\UltraMessage\\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"PromoSeven\\UltraMessage\\Tests\\": "tests/"
}
},
"scripts": {
"test": [
"vendor/bin/phpunit"
]
},
"license": [
"MIT"
],
"description": "Laravel WhatsApp integration via UltraMSG API",
"transport-options": {
"relative": true
}
},
{
"name": "psr/clock",
"version": "1.0.0",
@ -9435,7 +9488,7 @@
}
],
"aliases": [],
"minimum-stability": "stable",
"minimum-stability": "dev",
"stability-flags": {},
"prefer-stable": true,
"prefer-lowest": false,

10
config/ultra-message.php Normal file
View File

@ -0,0 +1,10 @@
<?php
return [
'instance_id' => env('ULTRAMSG_INSTANCE_ID'),
'token' => env('ULTRAMSG_TOKEN'),
'webhook_secret' => env('ULTRAMSG_WEBHOOK_SECRET', null),
'webhook_path' => env('ULTRAMSG_WEBHOOK_PATH', 'ultra-message/webhook'),
'timeout' => env('ULTRAMSG_TIMEOUT', 30),
'enabled' => env('ULTRAMSG_ENABLED', true),
];