Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

147 Commits

Repository files navigation

Moneo SMS - WHMCS SMS Notification Module

An open-source, feature-rich SMS notification addon for WHMCS. Automatically send SMS messages to clients and administrators based on WHMCS events such as order acceptance, invoice creation, ticket updates, and more.

Requirements

  • WHMCS 8.0 or later
  • PHP 8.1 or later (8.2 recommended)
  • PHP Extensions: cURL, JSON, SimpleXML
  • An active account with one of the supported SMS gateways

Features

  • 27+ automated hooks covering all major WHMCS events
  • 14 SMS gateway providers supported out of the box
  • Client and Admin notifications with separate template management
  • Template variables for personalized messages
  • Bulk SMS sending to all opted-in clients
  • Message history with delivery status tracking
  • Multi-language admin interface (English, Turkish, Russian)
  • Credit balance display (where supported by provider)

Installation

  1. Upload the modules/ folder to your WHMCS root directory.
  2. Go to Admin Area > Setup > Addon Modules.
  3. Find Moneo SMS and click Activate.
  4. Grant access to the admin groups that should manage the module.

Configure Custom Client Fields

  1. Go to Setup > Custom Client Fields.
  2. Add a Tick Box field:
    • Name: Subscribe to SMS
    • Show on Order Form: Checked
    • This allows clients to opt-in to SMS notifications during registration.
  3. Add a Text Box field:
    • Name: GSM Number
    • Show on Order Form: Checked
    • Clients will enter their mobile number here.

Configure the Module

  1. Go to Addons > Moneo SMS.
  2. In the Settings tab:
    • Select your SMS Gateway provider.
    • Enter your API credentials.
    • Set the Sender ID and Signature.
    • Map the custom fields you created above.
  3. In the Client Templates and Admin Templates tabs, customize your message templates.

Supported SMS Gateways

ProviderRegionWebsite
ClickAtellGlobalclickatell.com
NetGsmTurkeynetgsm.com.tr
Ucuz Sms AlTurkeyucuzsmsal.com
MutluCellTurkeymutlucell.com
Dakik SMSTurkeydakiksms.com
BirSMSTurkey1sms.com.tr
HemenPostaTurkey-
msg91.comIndiamsg91.com
ByteHandGlobal / Russiabytehand.com
SMS GatewayGlobal (Android)smsgateway.me
SendSms.roRomania / Globalsendsms.ro
Route SMSGlobal-
OneTouchSMSGlobal-

Supported Hooks

Client Notifications

HookDescription
ClientAddWelcome SMS after client registration
ClientChangePasswordNotification when client changes password
AcceptOrderNotification when order is accepted
AfterRegistrarRegistrationDomain registered successfully
AfterRegistrarRegistrationFailedDomain registration failed
AfterRegistrarRenewalDomain renewed successfully
AfterModuleCreateHosting account created (with credentials)
AfterModuleSuspendService suspended notification
AfterModuleUnsuspendService reactivated notification
AfterModuleChangePasswordHosting password changed
AfterModuleChangePackageService package changed
InvoiceCreatedNew invoice created
InvoicePaidInvoice payment received
InvoicePaymentReminderPayment reminder
InvoicePaymentReminder (1st overdue)First overdue notice
InvoicePaymentReminder (2nd overdue)Second overdue notice
InvoicePaymentReminder (3rd overdue)Third overdue notice
DomainRenewalNoticeDomain expiry reminder ({x} days before)
TicketAdminReplyAdmin replied to support ticket
TicketCloseSupport ticket closed

Admin Notifications

HookDescription
AdminLoginAdmin panel login alert
ClientLoginClient login notification
ClientAddNew client registration alert
TicketOpenNew ticket opened
TicketUserReplyClient replied to ticket
AfterRegistrarRegistrationDomain registered
AfterRegistrarRenewalDomain renewed
AfterRegistrarRegistrationFailedDomain registration failed
AfterRegistrarRenewalFailedDomain renewal failed

Upgrading from v1.x

Version 2.0.0 is a complete rewrite for WHMCS 8.x compatibility:

  • All deprecated mysql_* functions replaced with WHMCS Capsule DBAL
  • PHP 8.1+ type hints and modern syntax
  • SQL injection vulnerabilities fixed with parameterized queries
  • CSRF protection on all forms
  • Modernized Bootstrap admin UI
  • InnoDB engine with utf8mb4 charset support

Upgrade steps:

  1. Back up your existing module files and database.
  2. Upload the new files to your WHMCS installation, overwriting the old ones.
  3. Go to Setup > Addon Modules and the upgrade will run automatically.
  4. Verify your settings and templates are intact.

Adding a New SMS Provider

  1. Create a new file in modules/addons/moneo_sms/senders/ (e.g., myprovider.php).
  2. Create a class that extends MoneoSms and implements SmsSenderInterface.
  3. Implement send(), balance(), report(), utilgsmnumber(), and utilmessage().
  4. Return the provider configuration array at the end of the file:
return [
'value' => 'myprovider',
'label' => 'My Provider',
'fields' => ['user', 'pass'],
];

Contributing

Contributions are welcome! You are free to add new hooks, gateways, features, or bug fixes. Fork the repository, make your changes, and submit a pull request.

Contributors

License

This project is licensed under the MIT License.

About

SMS notification addon for WHMCS 8.x - 14 gateways, 28+ automated hooks, PHP 8.2 compatible

Topics

Resources

Stars

68 stars

Watchers

22 watching

Forks

Releases

Packages

Contributors

Languages