PHPackages                             goxens/goxens-v2-php - 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. goxens/goxens-v2-php

ActiveLibrary

goxens/goxens-v2-php
====================

Goxens v2 php SDK

v1.0.5(3y ago)028MITPHPPHP ^7.4|^8.0

Since Jan 2Pushed 3y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (5)Versions (8)Used By (0)

Goxens v2 php SDK
=================

[](#goxens-v2-php-sdk)

La librairie GoxensV2Php vous permet d'utiliser les services de Goxens via son API V2.

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

[](#installation)

```
composer require goxenspro/goxens-v2-php
```

Utilisation
-----------

[](#utilisation)

Pour utiliser le SDK PHP Goxens V2, vous aurez besoin d'une clé API ou d'un jeton JWT. Vous pouvez obtenir une clé API à partir du tableau de bord Goxens, ou vous pouvez utiliser la classe Auth pour générer un jeton JWT à l'aide de votre e-mail et de votre mot de passe.

```
require_once __DIR__ . '/vendor/autoload.php';
```

Générer un jeton d'authentification Bearer
------------------------------------------

[](#générer-un-jeton-dauthentification-bearer)

```
$auth = new Goxens\GoxensV2Php\Auth();
$jwt = $auth->generateToken('your@email.com', 'yourpassword');
```

Balance
-------

[](#balance)

Pour vérifier votre solde, vous devez envoyer une requête GET à l'URL suivante :

> Vous avez le choix entre utiliser votre jeton d'authentification ou votre clé API.

```
$balance = new Goxens\GoxensV2Php\Balance();
$balance->getBalance($jwt); // ou $balance->getBalance($apiKey);
```

Expediteurs
-----------

[](#expediteurs)

### Créer un expéditeur

[](#créer-un-expéditeur)

> Vous avez le choix entre utiliser votre jeton d'authentification ou votre clé API.

```
    $sender = new Goxens\GoxensV2Php\Sender();
    $senderName = $sender->createSender('My Sender', $token);
```

### Obtenir la liste des expéditeurs

[](#obtenir-la-liste-des-expéditeurs)

```
    $sender = new Goxens\GoxensV2Php\Sender();
    $senderList = $sender->findSenders($token);
```

### Delete un expéditeur

[](#delete-un-expéditeur)

```
    $sender = new Goxens\GoxensV2Php\Sender();
    $sender->deleteSender($senderId, $token);
```

Envoi de SMS
------------

[](#envoi-de-sms)

Pour envoyer un SMS, vous devez envoyer une requête POST à l'URL suivante :

> Vous avez le choix entre utiliser votre jeton d'authentification ou votre clé API.

```
    // Pour générer un jeton d'authentification
    $auth = new Goxens\GoxensV2Php\Auth();
    $token = $auth->generateToken('your@email.com', 'yourpassword');

    // Pour envoyer un SMS
    $simplesend = new Goxens\GoxensV2Php\Simplesend();
    $data = [
        "sender" => "My Sender",
        "typeContact" => "compose",
        "listeContacts" => "22991107506",
        "message" => "Bonjour",
        "hasSchedule" => false,
        "programDate" => null,
        "programTime" => null,
        "typeSmsSend" => "standard"
    ];

    $sendResult = $simplesend->sendSimpleSend($data, $token);
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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

Every ~7 days

Total

6

Last Release

1188d ago

PHP version history (2 changes)v1PHP ^7.1

v1.0.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/136ed3438409b2a46a26f7fee5ff4024c9f4609a60261510f959469144385b97?d=identicon)[goxens](/maintainers/goxens)

---

Top Contributors

[![Rodriguetech](https://avatars.githubusercontent.com/u/66095455?v=4)](https://github.com/Rodriguetech "Rodriguetech (24 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/goxens-goxens-v2-php/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M650](/packages/sylius-sylius)[kreait/firebase-php

Firebase Admin SDK

2.4k39.7M72](/packages/kreait-firebase-php)[shopify/shopify-api

Shopify API Library for PHP

4634.8M16](/packages/shopify-shopify-api)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)

PHPackages © 2026

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