PHPackages                             ssitdikov/telegraph-api-client - 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. ssitdikov/telegraph-api-client

ActiveLibrary[API Development](/categories/api)

ssitdikov/telegraph-api-client
==============================

Simple Telegra.ph API PHP Client

v0.1.3(7y ago)133526MITPHPPHP &gt;=7.0

Since Jan 1Pushed 7y ago2 watchersCompare

[ Source](https://github.com/ssitdikov/telegraph-api-client)[ Packagist](https://packagist.org/packages/ssitdikov/telegraph-api-client)[ RSS](/packages/ssitdikov-telegraph-api-client/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (5)Used By (0)

[![Build Status](https://camo.githubusercontent.com/d3f5520122b358ea715e00dcf34f86642f005585d1b9b53cc9c4d5189152d3f0/68747470733a2f2f7472617669732d63692e6f72672f7373697464696b6f762f74656c6567726170682d6170692d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ssitdikov/telegraph-api-client)[![Coverage Status](https://camo.githubusercontent.com/9540e3089f48de93cad975993cc424795025a0bcb583fc6a584de4196191e3b8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7373697464696b6f762f74656c6567726170682d6170692d636c69656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/ssitdikov/telegraph-api-client?branch=master)[![Codacy Badge](https://camo.githubusercontent.com/7412e1ed852e676e0b99dc2be9be9d79fa16cabf07305415f1c9890a667cb9f5/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3338656463643839366137613437613362613739306364663431363762376263)](https://www.codacy.com/app/sitsalavat/telegraph-api-client?utm_source=github.com&utm_medium=referral&utm_content=ssitdikov/telegraph-api-client&utm_campaign=Badge_Grade)

Telegra.ph API PHP Client
=========================

[](#telegraph-api-php-client)

О продукте
----------

[](#о-продукте)

Данная библиотека предназначена для работы с сервисом [Telegra.ph](https://telegra.ph).

Установка
---------

[](#установка)

Предполагается установка с использованием composer

```
composer require ssitdikov/telegraph-api-client

```

Пример использования
--------------------

[](#пример-использования)

### Создание аккаунта

[](#создание-аккаунта)

```
$telegraph = new TelegraphClient($client);

$account = new Account();
$account->setShortName('Test.Account');
try {
    $account = $telegraph->createAccount(
        new CreateAccountRequest($account)
    );
catch (\Exception $e) {
// ...
}
```

### Создание страницы

[](#создание-страницы)

```
$page = new Page();
$page->setTitle('Test article');
$page->setAuthorName( $account->getAuthorName() );

$link = new LinkType();
$link->setHref('https://github.com/ssitdikov');
$link->setText('Salavat Sitdikov github`s page');

$image = new ImageType();
$image->setSrc('https://telegram.org/file/811140775/1/Pc_4R_013Ow.144034/1c1eeaa592370d0b93');

$page->setContent([$link, $image,]);

$page = $telegraph->createPage(
    new CreatePageRequest($page, $account)
);
```

В настоящее время доступны следующие типы данных контента: `ParagraphType`, `ImageType`, `LinkType`, `YoutubeType`.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity51

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 ~55 days

Total

4

Last Release

2881d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d5bd088b01004a4a1308559a5d55865a930e5bec5c9264e72aa44d4041087478?d=identicon)[ssitdikov](/maintainers/ssitdikov)

---

Top Contributors

[![ssitdikov](https://avatars.githubusercontent.com/u/3704211?v=4)](https://github.com/ssitdikov "ssitdikov (20 commits)")

---

Tags

phpapitelegramtelegraphonline

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ssitdikov-telegraph-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/ssitdikov-telegraph-api-client/health.svg)](https://phpackages.com/packages/ssitdikov-telegraph-api-client)
```

###  Alternatives

[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[klev-o/telegram-bot-api

Simple and convenient object-oriented implementation Telegram bot API with php version ^7.4 support. You'll like it)

457.8k1](/packages/klev-o-telegram-bot-api)[borsaco/telegram-bot-api-bundle

A simple wrapper for telegram-bot-api.

5633.0k](/packages/borsaco-telegram-bot-api-bundle)[klev-o/crypto-pay-api

Simple and convenient implementation of the Crypto Pay payment system (@CryptoBot)

205.1k](/packages/klev-o-crypto-pay-api)[scriptdevelop/whatsapp-manager

Paquete para manejo de WhatsApp Business API en Laravel

762.6k](/packages/scriptdevelop-whatsapp-manager)

PHPackages © 2026

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