Download the PHP package mitsuha/sms-pusher without Composer

On this page you can find all versions of the php package mitsuha/sms-pusher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sms-pusher

高扩展性的短信验证码扩展包

安装

使用 composer 安装包:

发布资源组

使用

提供了一个控制器来获取验证码,路由可在配置文件中的 route-prefix 中修改,控制器获取手机号的字段可以在 inputKey 中修改

提供了 sms 验证规则,在需要短信验证的字段添加后,请求时需多带一个 {$attribute}Code, 如:

请求时:

如验证码正确,请求将通过。否则会抛出一个表单异常

配置

SmsPusher 分为两部分: 一个是 Driver 负责存储和校验验证码,另一个 Pusher 负责处理发信请求。扩展包中定义了两个 Contracts 分别对应两部分的业务实现

之后在配置文件 sms.php 中添加对应的实现,然后修改 default 使其生效

大多数情况下,验证码存储和校验都有通用的解决方案,但短信服务商多种多样,其提供的 API 也一言难尽。与其去支持各种服务商,不如把校验和存储的部分实现,具体的发信行为交由用户

实现一个发信请求,SmsPusher 需要你实现 mitsuha\SmsPusher\Sms\SmsPusherContracts 接口:


All versions of sms-pusher with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
illuminate/support Version ^7
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package mitsuha/sms-pusher contains the following files

Loading the files please wait ....