PHPackages                             rikkicom/call2fa - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rikkicom/call2fa

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rikkicom/call2fa
================

This is a client for the Rikkicom's Call2FA service

v2.1.1(6mo ago)08.5k↓33.3%MITPHPPHP &gt;=8.2CI passing

Since Feb 15Pushed 6mo ago1 watchersCompare

[ Source](https://github.com/rikkicom/call2fa-php-sdk)[ Packagist](https://packagist.org/packages/rikkicom/call2fa)[ RSS](/packages/rikkicom-call2fa/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (0)

PHP SDK for Call2FA
===================

[](#php-sdk-for-call2fa)

[![Tests](https://github.com/rikkicom/call2fa-php-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/rikkicom/call2fa-php-sdk/actions/workflows/tests.yml)

A PHP library for Rikkicom's Call2FA service - a phone call-based two-factor authentication solution that adds an extra layer of security to your authorization pipeline.

Table of Contents
-----------------

[](#table-of-contents)

- [Features](#features)
- [Requirements](#requirements)
- [Installation](#installation)
- [Quick Start](#quick-start)
- [API Methods](#api-methods)
    - [Basic Call](#basic-call)
    - [Call with Code](#call-with-code)
    - [Call via Last Digits](#call-via-last-digits)
    - [Get Call Information](#get-call-information)
- [Callback Handling](#callback-handling)
- [Error Handling](#error-handling)
- [Examples](#examples)
- [Documentation](#documentation)

Features
--------

[](#features)

- 🔐 **Two-Factor Authentication** via phone calls
- 📞 **Multiple Call Types**: Standard calls, calls with verification codes, and last-digit verification
- 🌍 **Multi-language Support**: Ukrainian language support for voice messages and others
- 🔄 **Callback Integration**: Receive real-time updates on call status
- 📊 **Call Information Retrieval**: Query detailed information about completed calls
- ⚡ **Simple API**: Easy-to-use interface with comprehensive error handling
- 🔒 **Secure Authentication**: JWT-based API authentication

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

[](#requirements)

- PHP 8.3 or higher
- ext-json extension
- Composer for dependency management
- Valid Call2FA API credentials (login and password)

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

[](#installation)

Install the SDK via Composer:

```
composer require rikkicom/call2fa
```

Quick Start
-----------

[](#quick-start)

Here's a simple example to make a verification call:

```
