PHPackages                             fonix/fonix - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fonix/fonix

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fonix/fonix
===========

Fonix PHP Library

1.0.0(7y ago)0948MITPHPPHP &gt;=5.3.3

Since Feb 26Pushed 7y agoCompare

[ Source](https://github.com/fonixopen/fonix_php_api)[ Packagist](https://packagist.org/packages/fonix/fonix)[ RSS](/packages/fonix-fonix/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/4cce41f308cfddbf2810d90e52a97609afa2b3fcf49c5c45d1c4fae1ff43bdb6/68747470733a2f2f6170692e7472617669732d63692e6f72672f666f6e69786f70656e2f666f6e69785f7068705f6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/fonixopen/fonix_php_api)

Fonix PHP bindings
==================

[](#fonix-php-bindings)

Please contact use at  to get started.

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

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Add this to your `composer.json`:

```
{
  "require": {
    "fonix/fonix": "1.0.0"
  }
}

```

Then install via:

```
composer install

```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');

```

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/fonixcode/fonix_php_api/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/fonix_php_api/init.php');

```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$client = new Fonix\Client("api_key");
$request = new Fonix\SmsRequest();
$request->body = "BODY";
$request->originator = "ORIG";
$request->numbers = ["447700000000"];
$result = $client->send_sms($request);
echo $result->numbers;
echo $result->sms_parts;
echo $result->encoding;
echo $result->tx_guid;

```

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

Certificate Errors
------------------

[](#certificate-errors)

If you receive errors like:

```
"SSL certificate problem: unable to get local issuer certificate"

```

This is likely because your php curl is not set up with a certificate bundle. This can be fixed by following the instructions here:

Or alternatively we have included the CA certificates that we require in a bundle which can be used by creating the Fonix Client like:

$client = Fonix\\Client::newWithHardcodedCA("api\_key");

String Encoding
---------------

[](#string-encoding)

All strings sent to the API should be UTF-8 encoded.

Tests
-----

[](#tests)

In order to run tests first install [PHPUnit](http://packagist.org/packages/phpunit/phpunit) via [Composer](http://getcomposer.org/):

```
composer update --dev

```

To run the test suite:

```
./vendor/bin/phpunit

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 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

Unknown

Total

1

Last Release

2631d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b47c6e2e78bdfb876f74a6633dfa403a07b9f2c8d594ac273e8762f8854ff484?d=identicon)[fonix\_mobile](/maintainers/fonix_mobile)

---

Top Contributors

[![david-dcp](https://avatars.githubusercontent.com/u/21036904?v=4)](https://github.com/david-dcp "david-dcp (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fonix-fonix/health.svg)

```
[![Health](https://phpackages.com/badges/fonix-fonix/health.svg)](https://phpackages.com/packages/fonix-fonix)
```

###  Alternatives

[leocarmo/graceful-shutdown-php

Graceful Shutdown for PHP

18108.2k](/packages/leocarmo-graceful-shutdown-php)[bogdaan/open-location-code

Open location code for php

1076.5k](/packages/bogdaan-open-location-code)

PHPackages © 2026

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