PHPackages                             kanagama/laravel-zettai-reach-sms-client - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. kanagama/laravel-zettai-reach-sms-client

ActiveLibrary[HTTP &amp; Networking](/categories/http)

kanagama/laravel-zettai-reach-sms-client
========================================

絶対リーチSMS API for Laravel

1.0.0(4mo ago)00MITPHPPHP ^8.2 | ^8.3 | ^8.4CI passing

Since Dec 31Pushed 3mo agoCompare

[ Source](https://github.com/kanagama/laravel-zettai-reach-sms-client)[ Packagist](https://packagist.org/packages/kanagama/laravel-zettai-reach-sms-client)[ RSS](/packages/kanagama-laravel-zettai-reach-sms-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (2)Used By (0)

laravel-zettai-reach-sms-client
===============================

[](#laravel-zettai-reach-sms-client)

[絶対リーチSMS API](https://doc.aossms.com/zettai-reach/openapi.html) の Laravel クライアントライブラリです。

Laravel client library for Zettai Reach SMS API.

目次 / Table of Contents
----------------------

[](#目次--table-of-contents)

- [インストール / Installation](#%E3%82%A4%E3%83%B3%E3%82%B9%E3%83%88%E3%83%BC%E3%83%AB--installation)
- [設定 / Configuration](#%E8%A8%AD%E5%AE%9A--configuration)
- [使用方法 / Usage](#%E4%BD%BF%E7%94%A8%E6%96%B9%E6%B3%95--usage)
    - [CommonMT 送信 / Send SMS](#commonmt-%E9%80%81%E4%BF%A1--send-sms)
    - [CommonMT 予約送信確認 / Check Scheduled SMS](#commonmt-%E4%BA%88%E7%B4%84%E9%80%81%E4%BF%A1%E7%A2%BA%E8%AA%8D--check-scheduled-sms)
    - [CommonMT 予約送信キャンセル / Cancel Scheduled SMS](#commonmt-%E4%BA%88%E7%B4%84%E9%80%81%E4%BF%A1%E3%82%AD%E3%83%A3%E3%83%B3%E3%82%BB%E3%83%AB--cancel-scheduled-sms)
    - [CommonMT 予約送信一括キャンセル / Cancel All Scheduled SMS](#commonmt-%E4%BA%88%E7%B4%84%E9%80%81%E4%BF%A1%E4%B8%80%E6%8B%AC%E3%82%AD%E3%83%A3%E3%83%B3%E3%82%BB%E3%83%AB--cancel-all-scheduled-sms)
    - [CommonMT ステータス取得 / Get Status](#commonmt-%E3%82%B9%E3%83%86%E3%83%BC%E3%82%BF%E3%82%B9%E5%8F%96%E5%BE%97--get-status)
    - [ショート URL 登録 / Register Short URL](#%E3%82%B7%E3%83%A7%E3%83%BC%E3%83%88-url-%E7%99%BB%E9%8C%B2--register-short-url)
    - [登録済み定型文取得 / Get Templates](#%E7%99%BB%E9%8C%B2%E6%B8%88%E3%81%BF%E5%AE%9A%E5%9E%8B%E6%96%87%E5%8F%96%E5%BE%97--get-templates)
    - [電話番号クリーニング / Phone Number Cleaning](#%E9%9B%BB%E8%A9%B1%E7%95%AA%E5%8F%B7%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%8B%E3%83%B3%E3%82%B0--phone-number-cleaning)
    - [通数集計 / Count Statistics](#%E9%80%9A%E6%95%B0%E9%9B%86%E8%A8%88--count-statistics)

インストール / Installation
---------------------

[](#インストール--installation)

Composer を使用してインストールします。

Install using Composer.

```
composer require kanagama/laravel-zettai-reach-sms-client
```

設定 / Configuration
------------------

[](#設定--configuration)

### config ファイルの公開 / Publish Configuration File

[](#config-ファイルの公開--publish-configuration-file)

以下のコマンドで設定ファイルを公開します。

Publish the configuration file with the following command.

```
php artisan vendor:publish --tag=zettai-reach-sms-config
```

これにより、`config/zettai-reach-sms.php` ファイルが作成されます。

This will create the `config/zettai-reach-sms.php` file.

### 環境変数の設定 / Environment Variables Configuration

[](#環境変数の設定--environment-variables-configuration)

`.env` ファイルに以下の環境変数を追加してください。

Add the following environment variables to your `.env` file.

```
ZETTAI_REACH_SMS_TOKEN=your-api-token-here
ZETTAI_REACH_SMS_CLIENT_ID=your-client-id-here
ZETTAI_REACH_SMS_TIMEOUT_SECONDS=10
```

- `ZETTAI_REACH_SMS_TOKEN`: アカウント登録時に発行されるアクセスキー（32文字の半角英数字）/ Access key issued during account registration (32 alphanumeric characters)
- `ZETTAI_REACH_SMS_CLIENT_ID`: 契約クライアントID（半角数字）/ Contract client ID (numeric)
- `ZETTAI_REACH_SMS_TIMEOUT_SECONDS`: タイムアウト時間（秒、デフォルト: 10）/ Timeout duration (seconds, default: 10)

### config ファイルの内容 / Configuration File Content

[](#config-ファイルの内容--configuration-file-content)

`config/zettai-reach-sms.php` の内容は以下の通りです。

The content of `config/zettai-reach-sms.php` is as follows.

```
