Download the PHP package hayrican/laravel-codec-fastsms without Composer

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

Türkçe

Laravel CODEC FAST SMS

Latest Stable Version Total Downloads License

This package provides easy and painless integration of Codec Messaging Platform API into your Laravel projects.

Requirements

Laravel >= 5.3
PHP >= 5.6.4

Installation

To get started, you should add the hayrican/laravel-codec-fastsms Composer dependency to your project:

Service Provider (Laravel Older 5.5)

If you are using later version of Laravel 5.5, you can skip this step.

Register provider on your config/app.php file.

Configuration

You should publish vendor for configuration file which has API Credentials and other configs.

Codec Credentials

Navigate to config/codecfastsms.php and enter your Codec API credentials in this file.

Route Configuration

Default router prefix is api and middleware is api. In this section you can change prefix and middleware.

Save SMS Requests

Default value of record comes false and it means you sms requests are not going to save on database. If you want to save you requests on database, you can make this field true as shown below

After changed the record value to true on config/codecfastsms.php file, you should migrate the migration.

And sms_records_table will appear on your database.

Package Usage

1.HTTP Request

You can send sms via a POST request to /codec-fastsms

Eg.1. Send a message to a number

Eg.2. Send a message to multiple numbers

Eg.3. Send multiple messages to multiple numbers

Post Required Parameters:

Key Value Description
phone 5XXXXXXXXX Phone number(s) to send multiple numbers you should put ~ between numbers. eg. 5XXXXXXXXX~5YYYYYYYYY
messageContent Message Text Message content(s) if you want to send different messages to different numbers you should put ~ between message contents. eg. MessageContent1~MessageContent2. NOTE: If you use this property, you should have equal number of phone and messageContent

Post Optional Parameters:

Key Value Description
msgSpecialId Message_Title This field use for searching on the Codec system records
headerCode Header_Code You can use this field for tracking messages from Codec Customer Service
optionalParameters OPTIONAL_PARAM Optional parameters

2.Artisan Console

Eg.1. Send a message to a number
Eg.2. Send a message to multiple numbers
Eg.3. Send multiple messages to multiple numbers

Command Required Parameters:

Key Value Description
--phone 5XXXXXXXXX Phone number(s) to send multiple numbers you should put ~ between numbers. eg. 5XXXXXXXXX~5YYYYYYYYY
--messageContent Message Text Message content(s) if you want to send different messages to different numbers you should put ~ between message contents. eg. MessageContent1~MessageContent2. NOTE: If you use this property, you should have equal number of phone and messageContent

Command Optional Parameters:

Key Value Description
--msgSpecialId Message_Title This field use for searching on the Codec system records
--headerCode Header_Code You can use this field for tracking messages from Codec Customer Service
--optionalParameters OPTIONAL_PARAM Optional parameters

Author

Hayri Can BARÇIN
Email: Contact Me

License

This project is licensed under the MIT License - see the License File for details


All versions of laravel-codec-fastsms with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
ext-simplexml Version *
ext-curl Version *
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 hayrican/laravel-codec-fastsms contains the following files

Loading the files please wait ....