itsmurumba/laravel-hostpinnacle

Laravel Package for Hostpinnacle SMS API
1,445 4
Install
composer require itsmurumba/laravel-hostpinnacle
Latest Version:v0.0.6
PHP:^7.1|^8.0|^8.1|^8.2|^8.3
License:MIT
Last Updated:Sep 14, 2026
Links: GitHub  ·  Packagist
Maintainer: ItsMurumba

Laravel Hostpinnacle

Official Laravel package for the Hostpinnacle SMS API. Quick SMS, Group SMS, and File Upload — with optional SaaS multi-account support.

Quick start

composer require itsmurumba/laravel-hostpinnacle
php artisan hostpinnacle:install

Add to .env:

HOSTPINNACLE_API_KEY=your-api-key
HOSTPINNACLE_SENDER_ID=your-sender-id
HOSTPINNACLE_LOGIN_USERNAME=your-username
HOSTPINNACLE_LOGIN_PASSWORD=your-password
HOSTPINNACLE_BASE_URL=https://smsportal.hostpinnacle.co.ke/SMSApi

Send SMS:

use Itsmurumba\Hostpinnacle\Facades\Hostpinnacle;

$response = Hostpinnacle::sendQuickSMS([
    'mobile' => '254720xxxxxx',
    'msg' => 'Hello World!',
]);

Testing the package locally (before publishing)

To try the package in a real Laravel app without publishing to Packagist:

1. Path repository (recommended) — In your Laravel app’s composer.json add a path repo and require the package:

{
    "repositories": [
        {
            "type": "path",
            "url": "/path/to/laravel-hostpinnacle"
        }
    ],
    "require": {
        "itsmurumba/laravel-hostpinnacle": "@dev"
    }
}

Then run composer update, add your Hostpinnacle env vars, and use the package as normal (e.g. Hostpinnacle::sendQuickSMS(...)). Changes in the package folder are used immediately (no re-publish).

2. From a Git branch — To test the install as users will (from GitHub), push your branch and in the app use:

{
    "repositories": [{"type": "vcs", "url": "https://github.com/ItsMurumba/laravel-hostpinnacle"}],
    "require": {
        "itsmurumba/laravel-hostpinnacle": "dev-feature/saas-multi-account"
    }
}

Replace the branch name with yours. Run composer update in the app. Good for checking that composer.json and the repo are correct before a public release.

Documentation

Full documentation (installation, configuration, usage, SaaS multi-account, testing, config reference) is built with VitePress and lives in the docs/ folder.

  • Local: Run npm install then npm run docs:dev and open http://localhost:5174.
  • Build: npm run docs:build — output in docs/.vitepress/dist/ (suitable for GitHub Pages or any static host).

For GitHub Pages (project site), set base: '/laravel-hostpinnacle/' in docs/.vitepress/config.mts before building. For a custom domain, keep base: '/'.

Contributing

Contributions are welcome. Please read Contribution.md before submitting PRs or issues.

License

MIT. See LICENSE for details.

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609

Version History

Version Released PHP Laravel License
v0.0.6 ^7.1|^8.0|^8.1|^8.2|^8.3 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
v0.0.5 ^7.1|^8.0|^8.1|^8.2|^8.3 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v0.0.4 ^7.1|^8.0|^8.1|^8.2|^8.3 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT
v0.0.3 ^7.1|^8.0|^8.1|^8.2 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0 MIT
v0.0.2 ^7.1|^8.0|^8.1 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0 MIT
Pre-releases (1)
Version Released PHP Laravel License
v0.0.6-alpha ^7.1|^8.0|^8.1|^8.2|^8.3 ^5.0|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0 MIT