PHPackages                             taiwan-sms/mitake - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. taiwan-sms/mitake

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

taiwan-sms/mitake
=================

三竹簡訊 mitake api client

v1.0.3(3y ago)13152MITPHPPHP &gt;=5.5.9

Since Dec 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/taiwan-sms/mitake)[ Packagist](https://packagist.org/packages/taiwan-sms/mitake)[ RSS](/packages/taiwan-sms-mitake/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (13)Versions (3)Used By (0)

Mitake notifications channel for Laravel 5.3+
=============================================

[](#mitake-notifications-channel-for-laravel-53)

[![StyleCI](https://camo.githubusercontent.com/5be627845c5804479e75aec786ce1944d8e6df82e870b608a9a6d8fb2e81d3fd/68747470733a2f2f7374796c6563692e696f2f7265706f732f38333736303332372f736869656c643f7374796c653d666c6174)](https://styleci.io/repos/83760327)[![Build Status](https://camo.githubusercontent.com/bee588cae32f9086a8d522a4adc2c033fb80d91e48ef411adfe6d629c38cd2b5/68747470733a2f2f7472617669732d63692e6f72672f74616977616e2d736d732f6d6974616b652e737667)](https://travis-ci.org/taiwan-sms/mitake)[![Total Downloads](https://camo.githubusercontent.com/900bf7bc3d1cca4cc8bd636c90301bf82b433b9bb485780204dd84d7ab7b5524/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f642f746f74616c2e737667)](https://packagist.org/packages/taiwan-sms/mitake)[![Latest Stable Version](https://camo.githubusercontent.com/570da98c19aaa61fe420fce2c7584d9211a1cf53864dd8cc217f0315043955d7/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f762f737461626c652e737667)](https://packagist.org/packages/taiwan-sms/mitake)[![Latest Unstable Version](https://camo.githubusercontent.com/4e9ef175432d9ab0bd46a01c43b6ae71bdeecb98a7c3aa8b3961249f478a5f63/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f762f756e737461626c652e737667)](https://packagist.org/packages/taiwan-sms/mitake)[![License](https://camo.githubusercontent.com/e403dcc2ad4ecbc51dbf392c0be9fb13125dd963bc6aeba996c0453ed69199dd/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f6c6963656e73652e737667)](https://packagist.org/packages/taiwan-sms/mitake)[![Monthly Downloads](https://camo.githubusercontent.com/73d51b107276962123d6813431fd17199014ea60e1c70d505feb8cf197363e12/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f642f6d6f6e74686c79)](https://packagist.org/packages/taiwan-sms/mitake)[![Daily Downloads](https://camo.githubusercontent.com/f4b84027a856e8cd400d683aaa6ff42e718ebb540fcb977680db307aae7fd07c/68747470733a2f2f706f7365722e707567782e6f72672f74616977616e2d736d732f6d6974616b652f642f6461696c79)](https://packagist.org/packages/taiwan-sms/mitake)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0af20e4c219c051fd1e098db5b14e44e5b2b42fe1244428e3973f7179284b4eb/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74616977616e2d736d732f6d6974616b652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/taiwan-sms/mitake/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/8075e43f26836579dab1e4763466f23cdde6ba05d2982a3b957e9bc9f69b1d40/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f74616977616e2d736d732f6d6974616b652f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/taiwan-sms/mitake/?branch=master)

This package makes it easy to send notifications using \[mitake\] with Laravel 5.3+.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the Mitake service](#setting-up-the-Mitake-service)
- [Usage](#usage)
    - [Available Message methods](#available-message-methods)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require taiwan-sms/mitake illuminate/notifications php-http/guzzle6-adapter
```

Then you must install the service provider:

```
// config/app.php
'providers' => [
    ...
    TaiwanSms\Mitake\MitakeServiceProvider::class,
],
```

### Setting up the Mitake service

[](#setting-up-the-mitake-service)

Add your Mitake login, secret key (hashed password) and default sender name (or phone number) to your `config/services.php`:

```
// config/services.php
...
'mitake' => [
    'username' => env('SERVICES_MITAKE_USERNAME'),
    'password' => env('SERVICES_MITAKE_PASSWORD'),
],
...
```

Usage
-----

[](#usage)

You can use the channel in your `via()` method inside the notification:

```
use TaiwanSms\Mitake\MitakeMessage;
use TaiwanSms\Mitake\MitakeChannel;
use Illuminate\Notifications\Notification;

class AccountApproved extends Notification
{
    public function via($notifiable)
    {
        return [MitakeChannel::class];
    }

    public function toMitake($notifiable)
    {
        return MitakeMessage::create("Task #{$notifiable->id} is complete!");
    }
}
```

In your notifiable model, make sure to include a routeNotificationForTwSMS() method, which return the phone number.

```
public function routeNotificationForTwSMS()
{
    return $this->phone;
}
```

### Available methods

[](#available-methods)

`subject()`: Sets a subject of the notification subject.

`content()`: Sets a content of the notification message.

`sendTime()`: Set send time of the notification message.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [JhaoDa](https://github.com/recca0120)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

API Only
========

[](#api-only)

```
composer require taiwan-sms/mitake php-http/guzzle6-adapter
```

How to use
----------

[](#how-to-use)

```
require __DIR__.'/vendor/autoload.php';

use TaiwanSms\Mitake\Client;

$userId = 'xxx';
$password = 'xxx';

$client = new Client($userId, $password);

var_dump($client->credit()); // 取得額度
var_dump($client->send([
    'to' => '09xxxxxxxx',
    'text' => 'test message',
]));
/*
return [
    'msgid' => '0892448417',
    'statuscode' => '1',
    'AccountPoint' => '97',
];
*/
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~363 days

Total

2

Last Release

1253d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1390554?v=4)[Recca Tsai](/maintainers/recca0120)[@recca0120](https://github.com/recca0120)

---

Top Contributors

[![recca0120](https://avatars.githubusercontent.com/u/1390554?v=4)](https://github.com/recca0120 "recca0120 (2 commits)")

---

Tags

laravelmitakenotificationlaravelnotificationsmsTaiwanmitake

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/taiwan-sms-mitake/health.svg)

```
[![Health](https://phpackages.com/badges/taiwan-sms-mitake/health.svg)](https://phpackages.com/packages/taiwan-sms-mitake)
```

###  Alternatives

[taiwan-sms/every8d

every8d sms api client

1817.8k](/packages/taiwan-sms-every8d)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
