PHPackages                             astelbe/sdk-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. [API Development](/categories/api)
4. /
5. astelbe/sdk-php

ActiveLibrary[API Development](/categories/api)

astelbe/sdk-php
===============

SDK used for a PHP Website to access Astel API and telecom data

1.0(7y ago)12.2k1[2 PRs](https://github.com/astelbe/sdk-php/pulls)proprietaryPHPPHP &gt;=5.6.0

Since Jun 26Pushed 1w ago5 watchersCompare

[ Source](https://github.com/astelbe/sdk-php)[ Packagist](https://packagist.org/packages/astelbe/sdk-php)[ RSS](/packages/astelbe-sdk-php/feed)WikiDiscussions dev Synced 3w ago

READMEChangelogDependenciesVersions (11)Used By (0)

Astel API Client Library for PHP
================================

[](#astel-api-client-library-for-php)

It is a lightweight, Astel API client library for PHP. The SDK is best suited for implementing some functionnalities on your own. For example: telecom product catalog listing, options, joint offer for comparing, ordering and sales reporting. The whole Astel.be website is written using this SDK and the API as source of data.

You can either implement your own website using this SDK or use easily integrable [off-the-shelf tools - Web Integration Modules](https://github.com/astelbe/web-integration). These modules are injectable on any internet facing application or website by inserting some html tags in your own code.

Astel SDK Installation
----------------------

[](#astel-sdk-installation)

Install via [Composer](https://getcomposer.org).

```
$ composer require astelbe/sdk-php

```

And use in your PHP code:

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

or, simply, download an archive of our code and upload it on your application.

Usage
-----

[](#usage)

See our developer site for more examples.

### Astel SDK Initialisation

[](#astel-sdk-initialisation)

```
// All methods require authentication. To get your Astel API Private Token credentials, contact us

require_once 'vendor/autoload.php';

use AstelSDK\Model\Partner;
use AstelSDK\Model\Brand;

$envParticle = ''; // '' for production, 'sta' for staging env
$apiToken = '12345abcde'; // API Private Token provided by Astel
$isDebug = false; // For more debug info
$logPath = null; // Null for no logs, a valid writable path for file logs
$isPrivate = true; // Default private / professionnal param (Optionnal)
$language = 'FR'; // Default language used by the page (Optionnal)

$AstelApiContext = new AstelSDK\AstelContext($envParticle, $apiToken, $isDebug, $logPath);
$AstelApiContext->setIsPrivate($isPrivate);
$AstelApiContext->setLanguage($language);

// Utils debug function registering
AstelSDK\AstelContext::registerUtilsFunctions();
```

Now you are ready to call the API and retrieve data.

### Product Example

[](#product-example)

```
$Product = AstelSDK\Model\Product::getInstance();

$products = $Product->find('all', [
	'_embed' => 'play_description,commission,web',
	'brand_id' => 3 // VOO
]);

debug($products);

$productVOOOne = $Product->find('first', [
	'id' => '1999', // VOO One
	'_embed' => 'play_description,commission,web',
]);

debug($productVOOOne);
```

It retrieves all VOO Products and their full description, the commission and cashback associated and web links for product page, and the second example retrieves a single product : Voo One.

### Discount Example:

[](#discount-example)

```
$Discount = Discount::getInstance();

$discounts = $Discount->find('all', [
	'brand_id' => 3,
	'_embed' => 'subscription_periods/product/commission,subscription_periods/product/web',
	'order' => '-weight',
	'count' => 50,
]);

debug($discounts);
```

It retrieves the 50 first active VOO discounts, order them by weight and retrives the associated recursive models: subscription\_periods/product/commission and subscription\_periods/product/web.

Supported Platforms
-------------------

[](#supported-platforms)

- PHP 7.0 or higher

How to contribute
-----------------

[](#how-to-contribute)

All submissions are welcome. Fork the repository, read the rest of this README file and make some changes. Once you're done with your changes send a pull request. Thanks!

Need Help? Found a bug?
-----------------------

[](#need-help-found-a-bug)

Just [submit a issue](https://github.com/astelbe/sdk-php/issues) if you need any help. And, of course, feel free to submit pull requests with bug fixes or changes.

Don't hesitate to contact Astel at  for more info or help for your integration.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance64

Regular maintenance activity

Popularity22

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

2563d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16933727?v=4)[Grégoire Bourguignon](/maintainers/astelbe)[@astelbe](https://github.com/astelbe)

---

Top Contributors

[![valentin-rocher](https://avatars.githubusercontent.com/u/5477143?v=4)](https://github.com/valentin-rocher "valentin-rocher (315 commits)")[![artedsolis](https://avatars.githubusercontent.com/u/52381154?v=4)](https://github.com/artedsolis "artedsolis (152 commits)")[![vanbe](https://avatars.githubusercontent.com/u/14038401?v=4)](https://github.com/vanbe "vanbe (61 commits)")[![michaelog](https://avatars.githubusercontent.com/u/7973137?v=4)](https://github.com/michaelog "michaelog (53 commits)")[![michaelgodefroid](https://avatars.githubusercontent.com/u/86228318?v=4)](https://github.com/michaelgodefroid "michaelgodefroid (30 commits)")[![baptiste-fournil](https://avatars.githubusercontent.com/u/135984601?v=4)](https://github.com/baptiste-fournil "baptiste-fournil (15 commits)")[![bagaciel](https://avatars.githubusercontent.com/u/135984601?v=4)](https://github.com/bagaciel "bagaciel (15 commits)")[![swann-martin](https://avatars.githubusercontent.com/u/71760899?v=4)](https://github.com/swann-martin "swann-martin (8 commits)")

### Embed Badge

![Health badge](/badges/astelbe-sdk-php/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k13](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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