PHPackages                             viontex/communications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. viontex/communications

ActiveLibrary

viontex/communications
======================

Codeigniter4 Bulk SMS/Email.

v2.1.7(2mo ago)00MITPHPPHP ^7.3|^8.1

Since Apr 25Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/okumuvion/php-bulksms-library)[ Packagist](https://packagist.org/packages/viontex/communications)[ RSS](/packages/viontex-communications/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)DependenciesVersions (13)Used By (0)

Codeigniter4 BulkSMS API Implementation for Hostpinnacle (Kenya)
================================================================

[](#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
---------------------

[](#composer-installation)

You can install the package via composer:

```
composer require eddieodira/messager
```

Initial Setup
-------------

[](#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:

1. Run the following command. This command handles steps 1(a), 1(b) and 1(c) of the steps below.

    ```
      php spark bulksms:publish
    ```

    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.

    ```
      php spark migrate --all
    ```
2. Update Validation Rules Add your custom rules to:

    ```
      app/Config/Validation.php
    ```

    ```
      public array $ruleSets = [
        Rules::class,
        FormatRules::class,
        FileRules::class,
        CreditCardRules::class,
        \Eddieodira\Messager\Validation\TemplateRules::class, // Bulk SMS rules goes here
    ];
    ```

Registration
------------

[](#registration)

To use this library you need create an account with Hostpinnacle (). They will help to create account from which you will get the following credentials:

1. API End Point
2. User ID
3. Password
4. API Key
5. Sender ID

Configuration
-------------

[](#configuration)

Inside the class, set the values provided by your SMS gateway:

```
