Initial commit: Struktur aplikasi ilycats

This commit is contained in:
Dwi F Sukmana
2026-02-08 15:16:35 +07:00
commit 0921901aed
235 changed files with 29016 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace App\Helpers;
class WhatsappHelper
{
public static function send($target, $message)
{
$token = "YOUR_API_TOKEN";
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'https://api.fonnte.com/send',
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => ['target' => $target, 'message' => $message],
CURLOPT_HTTPHEADER => ["Authorization: $token"],
]);
curl_exec($curl);
curl_close($curl);
}
}