Download the PHP package thinkstudeo/laravel-textlocal without Composer

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

Laravel Wrapper for Textlocal API.

Latest Version on Packagist Total Downloads

A convenience wrapper for the textlocal.in api requests for transactional as well as promotional accounts. The reseller account specific api are not available at this point in time.

Sms messaging can be used for transactional messages like:

Transactional messages need to be sent through at any time without any DND (Do Not Disturb) restrictions. For this one needs to register a Transactional Account with Textlocal or request for conversion of the default account to a Transactional Account.

On the other hand Sms messaging may also be used for promotional activities like:

Promotional messages need to adhere to the DND (Do Not Disturb) restrictions. The default signup at Textlocal creates a Promotional Account by default.

Contents

Installation

Config

Package facilitates using Transactional as well as Promotional Account with Textlocal at the same time.

Add the following to your config/services.php file

Don't forget to add the keys to your .env file

If you have just one - i.e. Promotional Account or Transactional Account - make sure to enter the API key accordingly. For example, for just a Textlocal Promotional Account, declare TEXTLOCAL_PROMOTIONAL_KEY=api_key_for_your_promotional_account.

Usage

There are two facades included with the package:

For differentiating the api calls with respect to account type use transactional() or promotional() to set the account for the api call.

Messaging - Transactional Account

You must have a transactional account with Textlocal inorder to send transactional sms without DND restriction 24x7. Also don't forget to get your templates for the transactional messages approved by Textlocal. Finally, you must generate an API KEY from your Textlocal dashboard

Then you can use the facade like

To send to a single user

To send to multiple users at once

OR, you can also provide the numbers as an array

And if you want to schedule a message to be sent at a specified time in future you can provide a datetime string in any of the formats supported by Carbon or you may also provide a unix timestamp.

To cancel a scheduled message

Messaging - Promotional Account

To send to a single user

To send to multiple users at once

OR, you can also provide the numbers as an array

And if you want to schedule a message to be sent at a specified time in future you can provide a datetime string in any of the formats supported by Carbon or you may also provide a unix timestamp.

To cancel a scheduled message

Message Status

To get the details of status of a message sent

Received Messages from Inbox

To retrieve the received messages from specific inbox

Templates in Account

To fetch all the templates associated with the account

Sender names

To fetch all the approved sender names from your account

Account Balance

To get the current account balance (credits remaining)

Check the availability of keyword

Check if a Contact Group exists

Create a New Contact Group

Get a list of all Groups

Delete a Contact Group

List of all Members of a Contact Group

Add numbers to an existing contact group

Add Contacts to an existing group

Remove a contact from the group

Get a list of all who have opted out

History

Surveys

To fetch a list of all active surveys

To get the details of a specific survey

To get the results of a specific survey

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

Please note that all test are integration tests meaning they will actually hit the textlocal api and consume the credits.

Security

If you discover any security related issues, please email [email protected] 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 laravel-textlocal with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ~5.5.0|~5.6.0|~5.7.0|~5.8.0
guzzlehttp/guzzle Version ^5.0|^6.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 thinkstudeo/laravel-textlocal contains the following files

Loading the files please wait ....