Download the PHP package liviu-hariton/smslink-laravel without Composer

On this page you can find all versions of the php package liviu-hariton/smslink-laravel. 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 smslink-laravel

SMSLink Laravel package

Latest Version on Packagist Total Downloads

A Laravel PHP package that provides convenient access to the SMSLink API.

Overview

Integration with SMSLink offers the ability to perform the following actions:

Table Of Content

Requirements

Installation

You can install the SMSLink Laravel package via Composer. Run the following command in your terminal:

Laravel will automatically register the package.

Publish the config file of this package with this command

The following config file will be published in config/smslink.php

Edit your .env file and add the following to it:

You can get theConnection IDandConnection Password` values from your SMSLink connections manager section

Usage

When the installation is done you can easily start consuming the SMSLink's API by using the available methods. All methods will return a JSON formatted data. Just inject the dependency in your controller's methods.

Alter the default credentials after initialization

In case you want to use different credentials for a specific request or you have them stored in a database, you can set them using the setConfig() method.

Send a single SMS message

The send() method takes two parameters:

The method will return a JSON formatted response with the following structure:

Send messages in bulk

`

The bulk() method takes two parameters:

Check the current balance

The credit() method takes no parameters and will return a JSON formatted response with the following structure:

Get the delivery report

With this method, you can parse the delivery report received from the SmsLink API via a POST or a GET request

The delivery_report() method takes no parameters and will return a JSON formatted response with the following structure:

All the available fields are described in the official documentation

Uninstallation

You can uninstall the SMSLink Laravel package via Composer. Run the following command in your terminal:

Also, make sure to remove the following files created by the package in your Laravel root directory:

Update your .env file and remove the following lines:

License

This library is licensed under the MIT License. See the LICENSE.md file for details.

SMSLink official API documentation

Disclaimer

I am not affiliated with SMSLink, but I am a developer who sees the value of their SMS Gateway services. The development and maintenance of this library is solely my responsibility (and any contributors to this repository).

Feel free to explore this library here on GitHub, contribute, and make the most of SMSLink’s powerful SMS Gateway services!


All versions of smslink-laravel with dependencies

PHP Build Version
Package Version
Requires php Version >=8.3
laravel/framework Version >=11.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 liviu-hariton/smslink-laravel contains the following files

Loading the files please wait ...