From 225719b7c9881165ca6d7bdb8378c0ac40e36ba3 Mon Sep 17 00:00:00 2001 From: Ghassan Yusuf Date: Tue, 19 May 2026 12:59:15 +0300 Subject: [PATCH] feat: install ultra-message package via Composer path Co-Authored-By: Claude Sonnet 4.6 --- .env.example | 6 +++++ composer.json | 9 ++++++- composer.lock | 57 ++++++++++++++++++++++++++++++++++++++-- config/ultra-message.php | 10 +++++++ 4 files changed, 79 insertions(+), 3 deletions(-) create mode 100644 config/ultra-message.php diff --git a/.env.example b/.env.example index c0660ea..0931a45 100644 --- a/.env.example +++ b/.env.example @@ -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 diff --git a/composer.json b/composer.json index c452382..af015f5 100644 --- a/composer.json +++ b/composer.json @@ -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 } diff --git a/composer.lock b/composer.lock index bc2fe76..1f4292e 100644 --- a/composer.lock +++ b/composer.lock @@ -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, diff --git a/config/ultra-message.php b/config/ultra-message.php new file mode 100644 index 0000000..97db905 --- /dev/null +++ b/config/ultra-message.php @@ -0,0 +1,10 @@ + 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), +];