Download the PHP package huangdijia/laravel-mitake without Composer
On this page you can find all versions of the php package huangdijia/laravel-mitake. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download huangdijia/laravel-mitake
More information about huangdijia/laravel-mitake
Files in huangdijia/laravel-mitake
Download huangdijia/laravel-mitake
More information about huangdijia/laravel-mitake
Files in huangdijia/laravel-mitake
Vendor huangdijia
Package laravel-mitake
Short Description mitake for laravel
License MIT
Homepage https://github.com/huangdijia/laravel-mitake
Package laravel-mitake
Short Description mitake for laravel
License MIT
Homepage https://github.com/huangdijia/laravel-mitake
Please rate this library. Is it a good library?
Informations about the package laravel-mitake
SMS gateway for mitake
Requirements
- PHP >= 7.0
- Laravel >= 5.5
Installation
First, install laravel 5.5, and make sure that the database connection settings are correct.
composer require huangdijia/laravel-mitake
Then run these commands to publish config
php artisan vendor:publish --provider="Huangdijia\Mitake\MitakeServiceProvider"
Configurations
// config/mitake.php
'username' => 'your account',
'password' => 'your password',
Usage
As Facade
use Huangdijia\Mitake\Facades\Mitake;
...
if (!Mitake::send('mobile', 'some message')) {
echo Mitake::getError();
echo Mitake::getErrno();
} else {
echo "send success";
}
As Command
php artisan mitake:send 'mobile' 'some message'
# send success
# or
# error
As Helper
if (!mitake()->send('mobile', 'some message')) {
echo mitake()->getError();
echo mitake()->getErrno();
} else {
echo "send success";
}
if (!$error = mitake_send('mobile', 'some message')) {
echo $error;
} else {
echo "send success";
}
Other
License
laravel-mitake is licensed under The MIT License (MIT).
All versions of laravel-mitake with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.0.0
illuminate/support Version ^5.7|^5.8|^6.0|^7.0
illuminate/console Version ^5.7|^5.8|^6.0|^7.0
huangdijia/laravel-curl Version ^1.0
illuminate/support Version ^5.7|^5.8|^6.0|^7.0
illuminate/console Version ^5.7|^5.8|^6.0|^7.0
huangdijia/laravel-curl Version ^1.0
The package huangdijia/laravel-mitake contains the following files
Loading the files please wait ...

