Download the PHP package chanify/sdk without Composer
On this page you can find all versions of the php package chanify/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Vendor chanify
Package sdk
Short Description Official Chanify SDK - monetize your Telegram bot with ads
License MIT
Homepage https://chanify.online
Package sdk
Short Description Official Chanify SDK - monetize your Telegram bot with ads
License MIT
Homepage https://chanify.online
Please rate this library. Is it a good library?
Informations about the package sdk
Chanify PHP SDK
Official PHP SDK for Chanify — the ad network for Telegram bots, channels, and Mini Apps.
Installation
Quick Start
Full API
| Parameter | Type | Required | Description |
|---|---|---|---|
chatId |
int | Yes | Telegram chat ID |
userMeta['userId'] |
int | No | Telegram user ID |
userMeta['languageCode'] |
string | No | User language code, e.g. "en" |
userMeta['isPremium'] |
bool | No | Whether the user has Telegram Premium |
userMeta['country'] |
string | No | ISO 3166-1 alpha-2 country code |
Returns true if an ad was shown, false otherwise. Never throws exceptions — safe to call without try/catch.
Example with Telegram Bot API
Requirements
- PHP 8.0+
- ext-curl
- ext-json
Get your API key
- Sign up at chanify.online
- Go to Publisher → My Bots → Add Bot
- Copy your
chanify_live_API key from Step 3
Links
License
MIT
All versions of sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.0
ext-curl Version *
ext-json Version *
ext-curl Version *
ext-json Version *
The package chanify/sdk contains the following files
Loading the files please wait ...