Download the PHP package viontex/communications without Composer
On this page you can find all versions of the php package viontex/communications. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download viontex/communications
More information about viontex/communications
Files in viontex/communications
Package communications
Short Description Codeigniter4 BulkSMS API Implementation for Hostpinnacle (Kenya)
License MIT
Informations about the package communications
Codeigniter4 BulkSMS API Implementation for Hostpinnacle (Kenya)
This is a simple implementation of bulk sms for Codeigniter4 for Hostpinnacle in Kenya. This library includes functionality to send single or batch messages.
Composer Installation
You can install the package via composer:
Initial Setup
To start using the Bulk SMS library in your CodeIgniter 4 project, there are a few setup steps you need to complete so the package integrates smoothly with your app:
-
Run the following command. This command handles steps 1(a), 1(b) and 1(c) of the steps below.
Config Setup: Copy the Bulksms.php from vendor/odiraeddie/src/Config/ into your project's config folder and update the namespace to Config. You will also need to have these classes extend the original classes. These files contain all the settings that you will need to be modified to meet the needs of your site.
Helper Setup: The setting helpers need to be included in almost every page. The simplest way to do this is to add it to the app/Config/Autoload.php.
Migration: Run the migrations.
-
Update Validation Rules Add your custom rules to:
php $bulksms->send('2547xxxxxxxx', 'Hello, I am just testing this applications', '2026-04-25 09:46:00'); ```, with date and time as the argument:
Template SMS with Dynamic Placeholders (Optional)
SMS templates are now stored in the database. • Templates can include dynamic placeholders like {name} or {name:User}. • Placeholders are automatically validated and replaced with runtime values. • Defaults can be defined inside placeholders (e.g., uses “User” if no name is provided in {name:User}). • This makes bulk messaging more flexible and professional, allowing you to reuse and personalize messages without hardcoding text.
Extracting Placeholders
To know the placeholders in a particular sms template, do the follwing:
Here the string argument 'fees_increase' is the template code. This is found in the database table. It give the list in array form including any default value given or null if no default is specified.
Other methods: Add SMS Template with Placeholders
Update SMS Template with Placeholders
Find ALL SMS Template
Find 1 SMS Template by ID
Find 1 SMS Template by any other column
Contact
Please open an issue on GitHub if you have any problems or suggestions or you can contact me on +254707362220 or [email protected].
License
I have released the contents of this repository under the MIT license.