PHPackages                             sagleft/utopialib-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. sagleft/utopialib-php

ActiveLibrary[API Development](/categories/api)

sagleft/utopialib-php
=====================

PHP library for Utopia Network API

1.0.25(5y ago)49231MITPHPPHP ^7.0CI failing

Since Oct 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Sagleft/utopialib-php)[ Packagist](https://packagist.org/packages/sagleft/utopialib-php)[ Fund](https://tidelift.com/funding/github/packagist/Sagleft/utopialib-php)[ RSS](/packages/sagleft-utopialib-php/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (3)Versions (24)Used By (1)

[![logo](img/logo.png)](img/logo.png)

PHP library for Utopia Network API.

Installation with Composer
--------------------------

[](#installation-with-composer)

```
composer require sagleft/utopialib-php
```

Usage
-----

[](#usage)

```
$token = "3D4F4A5E34706378B4A4541502E603B6";
$client = new UtopiaLib\Client($token, "http://127.0.0.1", 22824);
print_r($client->getSystemInfo());
```

result:

```
Array
(
    [result] => Array
        (
            [buildAbi] => x86_64-little_endian-llp64
            [buildCpuArchitecture] => x86_64
            [build_number] => 0.3.5115
            [currentCpuArchitecture] => x86_64
            [netCoreRate] => 25
            [networkCores] => 1
            [networkEnabled] => 1
            [numberOfConnections] => 9
            [packetCacheSize] => 7320
            [uptime] => 02:30:09
        )

    [resultExtraInfo] => Array
        (
            [elapsed] => 0
        )

)

```

How to run examples

```
cp example.env .env
```

Then enter your data in `.env` to connect to the client. Then open the `examples` folder.

Example (in command line):

```
php CheckConnection.php
```

You can find out more about all the methods [in the interface of the main class.](src/ClientInterface.php)

For convenience, all methods in the library have the same names as in the Utopia API.

Additional methods:

- checkClientConnection(): bool;
- isUserMyContact($pkOrNick): bool;
- getNetworkSummary(): array;
- isCryptonEngineReady(): bool;
- isNATDetectionON(): bool;
- isUPNPDetectionON(): bool;
- isChannelDatabaseReady(): bool;
- getChannelDecription($channelid): string;
- getChannelOwnerPubkey($channelid): string;
- getChannelTitle($channelid): string;
- getChannelType($channelid): string;
- getNetworkChannelsCount(): int;
- getTotalChannelsCount(): int;
- getLastDownloadedChannelTitle(): string;
- getMyPubkey(): string;
- getMyNick(): string;
- getMyAvatarHash(): string;
- isPOSenabled(): bool;
- findChannelsByPubkey($pubkey): array;
- isNetworkEnabled(): bool;

License
-------

[](#license)

UtopiaLib is licensed under [The MIT License](LICENSE).

---

[![image](https://github.com/Sagleft/Sagleft/raw/master/image.png)](https://github.com/Sagleft/Sagleft/raw/master/image.png)

### 🌐 [Telegram канал](https://t.me/+VIvd8j6xvm9iMzhi)

[](#globe_with_meridians-telegram-канал)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~37 days

Total

22

Last Release

1861d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33496565?v=4)[Sagleft](/maintainers/Sagleft)[@Sagleft](https://github.com/Sagleft)

---

Top Contributors

[![Sagleft](https://avatars.githubusercontent.com/u/33496565?v=4)](https://github.com/Sagleft "Sagleft (72 commits)")

---

Tags

php-libraryutopia-apiutopia-p2pphplibutopia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sagleft-utopialib-php/health.svg)

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

###  Alternatives

[theodo-group/llphant

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

1.5k311.5k5](/packages/theodo-group-llphant)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[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)
