PHPackages                             hayrican/laravel-codec-fastsms - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. hayrican/laravel-codec-fastsms

ActiveLibrary[API Development](/categories/api)

hayrican/laravel-codec-fastsms
==============================

Codec Fast Sms Api Integration

v1.2.5(5y ago)1371MITPHP

Since Apr 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/HayriCan/laravel-codec-fastsms)[ Packagist](https://packagist.org/packages/hayrican/laravel-codec-fastsms)[ RSS](/packages/hayrican-laravel-codec-fastsms/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (10)Used By (0)

[Türkçe](doc#readme)

Laravel CODEC FAST SMS
======================

[](#laravel-codec-fast-sms)

[![Latest Stable Version](https://camo.githubusercontent.com/5e56674914922f755bcf41d4437db3db3311bf9aefd29dcfeef26cc378f7d5f0/68747470733a2f2f706f7365722e707567782e6f72672f686179726963616e2f6c61726176656c2d636f6465632d66617374736d732f76657273696f6e)](https://packagist.org/packages/hayrican/laravel-codec-fastsms)[![Total Downloads](https://camo.githubusercontent.com/60ef6c47369c818db09f102d01f063a40dbf4e27d9c5ef80d1b0a89f41e28a31/68747470733a2f2f706f7365722e707567782e6f72672f686179726963616e2f6c61726176656c2d636f6465632d66617374736d732f646f776e6c6f616473)](https://packagist.org/packages/hayrican/laravel-codec-fastsms)[![Latest Unstable Version](https://camo.githubusercontent.com/ee5c1201d7b0b400387b3b38b45eca662112f095266e009e4adf49e1d9f7fcce/68747470733a2f2f706f7365722e707567782e6f72672f686179726963616e2f6c61726176656c2d636f6465632d66617374736d732f762f756e737461626c65)](//packagist.org/packages/hayrican/laravel-codec-fastsms)[![License](https://camo.githubusercontent.com/4484ad5ebc8691e4175fde5371e1257ffa911f0b5e3af1d851d5aea767e8505b/68747470733a2f2f706f7365722e707567782e6f72672f686179726963616e2f6c61726176656c2d636f6465632d66617374736d732f6c6963656e7365)](https://packagist.org/packages/hayrican/laravel-codec-fastsms)

This package provides easy and painless integration of [Codec Messaging Platform API](https://www.codec.com.tr/index-en.html#p1) into your Laravel projects.

Requirements
------------

[](#requirements)

```
Laravel >= 5.3
PHP >= 5.6.4

```

Installation
------------

[](#installation)

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

```
composer require hayrican/laravel-codec-fastsms

```

#### Service Provider (Laravel Older 5.5)

[](#service-provider-laravel-older-55)

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

[](#if-you-are-using-later-version-of-laravel-55-you-can-skip-this-step)

Register provider on your `config/app.php` file.

```
'providers' => [
    ...,
    HayriCan\CodecFastSms\CodecFastSmsServiceProvider::class,
]
```

Configuration
-------------

[](#configuration)

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

```
$ php artisan vendor:publish --provider="HayriCan\CodecFastSms\CodecFastSmsServiceProvider"
```

#### Codec Credentials

[](#codec-credentials)

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

```
[
  'username'=> "CODEC_USERNAME",
  'password'=> "CODEC_PASSWORD",
  'sender'=> "CODEC_SENDER",
]

```

#### Route Configuration

[](#route-configuration)

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

```
[
  'route_prefix'=> 'api',

  'middleware'=> ['api'],
]

```

#### Save SMS Requests

[](#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

```
[
  'record'=> true
]

```

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

```
$ php artisan migrate
```

And `sms_records_table` will appear on your database.

Package Usage
=============

[](#package-usage)

1.HTTP Request
--------------

[](#1http-request)

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

##### Eg.1. Send a message to a number

[](#eg1-send-a-message-to-a-number)

[![Screencast1](doc/postman-1.PNG)](doc/postman-1.PNG)

##### Eg.2. Send a message to multiple numbers

[](#eg2-send-a-message-to-multiple-numbers)

[![Screencast2](doc/postman-2.PNG)](doc/postman-2.PNG)

##### Eg.3. Send multiple messages to multiple numbers

[](#eg3-send-multiple-messages-to-multiple-numbers)

[![Screencast3](doc/postman-3.PNG)](doc/postman-3.PNG)

### Post Required Parameters:

[](#post-required-parameters)

KeyValueDescription`phone`5XXXXXXXXXPhone number(s) to send multiple numbers you should put `~` between numbers. eg. `5XXXXXXXXX~5YYYYYYYYY``messageContent`Message TextMessage 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:

[](#post-optional-parameters)

KeyValueDescription`msgSpecialId `Message\_TitleThis field use for searching on the Codec system records`headerCode `Header\_CodeYou can use this field for tracking messages from Codec Customer Service`optionalParameters `OPTIONAL\_PARAMOptional parameters2.Artisan Console
-----------------

[](#2artisan-console)

##### Eg.1. Send a message to a number

[](#eg1-send-a-message-to-a-number-1)

```
$ php artisan fastsms:send --phone='5XXXXXXXXX' --messageContent='Message Text'
```

##### Eg.2. Send a message to multiple numbers

[](#eg2-send-a-message-to-multiple-numbers-1)

```
$ php artisan fastsms:send --phone='5XXXXXXXXX~5YYYYYYYYY~5ZZZZZZZZZ' --messageContent='Message Text'
```

##### Eg.3. Send multiple messages to multiple numbers

[](#eg3-send-multiple-messages-to-multiple-numbers-1)

```
$ php artisan fastsms:send --phone='5XXXXXXXXX~5YYYYYYYYY~5ZZZZZZZZZ' --messageContent='Message Text~Message Text2~Message Text3'
```

### Command Required Parameters:

[](#command-required-parameters)

KeyValueDescription`--phone`5XXXXXXXXXPhone number(s) to send multiple numbers you should put `~` between numbers. eg. `5XXXXXXXXX~5YYYYYYYYY``--messageContent`Message TextMessage 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:

[](#command-optional-parameters)

KeyValueDescription`--msgSpecialId `Message\_TitleThis field use for searching on the Codec system records`--headerCode `Header\_CodeYou can use this field for tracking messages from Codec Customer Service`--optionalParameters`OPTIONAL\_PARAMOptional parametersAuthor
------

[](#author)

[Hayri Can BARÇIN](https://www.linkedin.com/in/hayricanbarcin/)
Email: [Contact Me](mailto:hayricanbarcin@gmail.com)

License
-------

[](#license)

This project is licensed under the MIT License - see the [License File](LICENSE) for details

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~89 days

Recently: every ~0 days

Total

9

Last Release

1866d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/366774383f37676b6212de464ee0d1d4781a6395662c6555e9b8c26aef664db6?d=identicon)[hayrican](/maintainers/hayrican)

---

Top Contributors

[![HayriCan](https://avatars.githubusercontent.com/u/17090831?v=4)](https://github.com/HayriCan "HayriCan (12 commits)")

### Embed Badge

![Health badge](/badges/hayrican-laravel-codec-fastsms/health.svg)

```
[![Health](https://phpackages.com/badges/hayrican-laravel-codec-fastsms/health.svg)](https://phpackages.com/packages/hayrican-laravel-codec-fastsms)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
