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(6y ago)12.2k1[1 PRs](https://github.com/astelbe/sdk-php/pulls)proprietaryPHPPHP &gt;=5.6.0

Since Jun 26Pushed 5d ago5 watchersCompare

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

READMEChangelogDependenciesVersions (9)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 91% of packages

Maintenance65

Regular maintenance activity

Popularity20

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 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

2518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2eb893befb0224da1094fdcfe910e4b902aff12f4ff50a9da9d808c0036a1074?d=identicon)[astelbe](/maintainers/astelbe)

---

Top Contributors

[![valentin-rocher](https://avatars.githubusercontent.com/u/5477143?v=4)](https://github.com/valentin-rocher "valentin-rocher (286 commits)")[![artedsolis](https://avatars.githubusercontent.com/u/52381154?v=4)](https://github.com/artedsolis "artedsolis (149 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)")[![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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[facebook/php-business-sdk

PHP SDK for Facebook Business

90821.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

74513.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[google/common-protos

Google API Common Protos for PHP

173103.7M50](/packages/google-common-protos)

PHPackages © 2026

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