itsmurumba/laravel-hostpinnacle 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

itsmurumba/laravel-hostpinnacle

最新稳定版本:v0.0.5

Composer 安装命令:

composer require itsmurumba/laravel-hostpinnacle

包简介

Laravel Package for Hostpinnacle SMS API

README 文档

README

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.

统计信息

  • 总下载量: 1.02k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-03-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固