Skip to content

πŸ“‘ Mikrotik API client super ringan untuk PHP, Kompatibel RouterOS v6 dan v7. Tidak perlu Composer, tidak ribet, cukup `require` dan langsung jalan!

License

Notifications You must be signed in to change notification settings

daffadevhosting/mikrotik-lite-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

mikrotik-lite-php

πŸ“‘ Mikrotik API client super ringan untuk PHP.
Tidak perlu Composer, tidak ribet, cukup require dan langsung jalan!

php -S localhost:1111

πŸš€ Fitur

πŸ”’ Support dual login: challenge-based (lama) dan direct login (baru)

πŸ” Auto detect saat koneksi

βœ… Kompatibel RouterOS v6 dan v7

  • Koneksi langsung ke API Mikrotik (port 8728)
  • Kirim perintah & baca respons (/ip/hotspot/user/print, dll)
  • Ringan, tanpa dependensi eksternal

πŸ’» Contoh Penggunaan

require_once __DIR__ . '/../src/RouterOSClient.php';

use MikroTikLite\RouterOSClient;

$api = new RouterOSClient('192.168.88.1', 'admin', '');
$api->connect();

$response = $api->send('/ip/hotspot/user/print');
print_r($response);

πŸ“‚ Struktur

  • src/ β†’ Kode utama library
  • examples/ β†’ Contoh file penggunaan
  • RouterOSClient.php β†’ Kelas utama komunikasi API

πŸ› οΈ Roadmap

  • Koneksi via socket
  • Login challenge-response
  • Kirim command dasar
  • Parse data !re β†’ array terstruktur
  • Command helper: add(), remove(), enable()
  • Handle error !trap
  • Test Connect !trap

πŸ“„ License

MIT β€” bebas dipakai, ubah, dan dibagikan.

About

πŸ“‘ Mikrotik API client super ringan untuk PHP, Kompatibel RouterOS v6 dan v7. Tidak perlu Composer, tidak ribet, cukup `require` dan langsung jalan!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages