Download the PHP package altrntv/sms-ru without Composer

On this page you can find all versions of the php package altrntv/sms-ru. 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-ru

SmsRu notifications channel for Laravel

This package makes it easy to send notifications using sms.ru with Laravel ^12.x.

Contents

Installation

Install this package with Composer:

Setting up the SmsRu service

Add your SmsRu Api ID and Host to your config/services.php:

Usage

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

In your notifiable model, make sure to include a routeNotificationForSmsRu() method, which returns a phone number or an array of phone numbers.

Available Message methods

Method Description
to() Set a phone number
from(?string $from) Sender's name (must be agreed with the administration). If it is not filled in, your default sender will be specified as the sender.
ip(?string $ip) User's IP address
sendAt(?CarbonInterface $time) If you need a delayed dispatch, specify the time of dispatch. It is specified in UNIX TIME format (example: 1280307978). It must be no more than 2 months from the date of submitting the request. If the time is less than the current time, the message is sent immediately.
ttl(?int $ttl) The message lifetime is in minutes (from 1 to 1440).
daytime(bool $daytime = true) Takes into account the recipient's time zone.
translit(bool $translit = true) Translates all Russian characters into Latin.
test(bool $test = true) Simulates sending a message to test your programs for the correct processing of server responses. However, the message itself is not sent and the balance is not spent.
partnerId(?string $partnerId) If you participate in an affiliate program, specify this parameter in the request and receive a percentage of the cost of the sent messages. Your unique identifier is already specified in the parameter.

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Security

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

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of sms-ru with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
illuminate/notifications Version ^12.0|^13.0
illuminate/support Version ^12.0|^13.0
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 altrntv/sms-ru contains the following files

Loading the files please wait ...