Phone

+1(585) 213-5859

Cancel
tel Call msg Online support
AlphaSMS.net Integrations E-commerce&CMS CiFrame
detail-bg
E-commerce&CMS

Integration CiFrame with AlphaSMS

Updated: 06.03.2026

Description

CiFrame - the company specializes in the implementation, integration and communication of a variety of web products and platforms. Such products can be CRM, ERP, CMS, as well as payment services, statistics, messaging, mailings (SMS, mail), deliveries, social networks, as well as products in which the API is implemented in one form or another.

Benefits of integration CiFrame + AlphaSMS

  • High performance: CodeIgniter runs faster than many other PHP frameworks due to its minimal resource consumption.
  • Lightweight: The framework takes up little space (~2MB), which makes it easy to use and configure.
  • Easy to learn: Thanks to its simple architecture and clear documentation, CodeIgniter is suitable even for beginners.
  • No command line required: Unlike Laravel or Symfony, it does not force you to work through the CLI, which is convenient for those who do not like the command line.
  • Flexibility: You can use both MVC (Model-View-Controller) and traditional coding style.
  • Minimum server requirements: Supports older versions of PHP, which allows it to work even on outdated hosting.
  • Built-in libraries: The framework includes useful libraries for working with databases, sessions, validation, caching, and security.
  • Security: Built-in protections against SQL injection, XSS, CSRF, and session hijacking.
  • Active community: While Laravel is currently more popular, CodeIgniter has a large user base and support.

Installation instructions

  1. Get an AlphaSMS API keynFirst, register for AlphaSMS and get an API key.n
  2. Set up the AlphaSMS library in CodeIgniternCreate the AlphaSMS.php library
    In the application/libraries/ folder, create the AlphaSMS.php file and paste the following code:

    <?php
    defined('BASEPATH') OR exit('No direct script access allowed');
    class AlphaSMS {
      private $api_url = "https://alphasms.ua/api/json";
      private $api_key;
      public function __construct($params = array()) {
        $this->api_key = $params['api_key'] ?? 'ВАШ_API_КЛЮЧ';
      }
      public function send_sms($phone, $message, $sender = 'AlphaSMS') {
        $data = array(
          "key" => $this->api_key,
          "phone" => $phone,
          "message" => $message,
          "sender" => $sendern 
        );
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL, $this->api_url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        curl_setopt($ch, CURLOPT_POST, 1);
        curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
        curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));
        response = curl_exec($ch);
        curl_close($ch);
        return json_decode($response, true);
      }
    } ?>

  3. Using the library in the controller
    In the controller (application/controllers/SmsController.php) add:

    <?php
    defined('BASEPATH') OR exit('No direct script access allowed');
    class SmsController extends CI_Controller {
      public function send() {
        $this->load->library('AlphaSMS', array('api_key' => 'ВАШ_API_КЛЮЧ'));
        $phone = '+380XXXXXXXXX'; // Введите номер телефонаn $message = 'Ваш код подтверждения: 123456';
        $response = $this->alphasms->send_sms($phone, $message);
        echo "<pre>";
        print_r($response);
        echo "</pre>";
      }
    } ?>

  4. Call to send SMS
    Now open in your browser

    If everything is configured correctly, you will see the JSON response from the server.

Files

Details CiFrame

FAQ

Most CRM systems do not have built-in functionality for sending messages, so there is a need to connect third-party services for SMS mailings. Our integration allows you to automate this process, ensuring fast and reliable sending of messages without additional effort. We will help with setup, registration of an alpha name and provide technical support.

To connect the integration you will need:

  • Login (phone number you use to log in to your personal account)
  • Password (from your personal account)
  • Alpha-name (registered name of the sender)
  • API-key (generated in your personal account)

If necessary, we will help you obtain all the necessary data.

No, there are no additional fees for connecting or using the integration. You only top up your balance with the amount needed for your mailings.
Yes, in most cases we provide the ability to send test messages so that you can evaluate the quality of the service. Contact us and we will help you set up testing.
Try for free 7 days of testing

Authentication factor - to confirm the login to