Skip to content

nonUser00/laravel-fonnte

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fonnte for Laravel

Latest Version on Packagist Total Downloads

Unofficial Integrasi API Fonnte untuk Laravel.


Requirements

The following plugin is tested under following environment:

  • PHP v8.2.x or greater
  • Laravel 12

Instalasi

1. Install Package

composer require nonuser/laravel-fonnte

2. Konfigurasi

A. Publish Config

php artisan vendor:publish --provider="Fonnte\\Laravel\\FonnteServiceProvider" --tag="config"

B. Tambahkan Token Fonnte

FONNTE_TOKEN=

Cara Penggunaan

use Fonnte;

$response = Fonnte::sendMessage('081234567890', 'Halo dari Laravel!');

if ($response->successful()) {
    logger('Pesan berhasil dikirim.', ['res' => $response->json()]);
} else {
    logger()->error('Gagal mengirim pesan.', ['res' => $response->body()]);
}

🔐 Keamanan

Kalau ada laporan keamanan, kirimkan langsung ke: nonuser0002@gmail.com


👨‍💻 Author

nonUser00
📧 Email: nonuser0002@gmail.com
💻 GitHub: @nonUser00


📄 License

This package is licensed under the MIT License - see the LICENSE file for details.


⭐ If you find this package helpful, please consider giving it a star!

Made with ❤️ to make sending WhatsApp messages from Laravel

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages