PHPackages                             yoapycom/yoapy-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. yoapycom/yoapy-php

ActiveLibrary

yoapycom/yoapy-php
==================

Framework-agnostic PHP client for YoApy API (HMAC-signed, JSON-only).

00PHP

Since Sep 9Pushed 8mo agoCompare

[ Source](https://github.com/yoapycom/yoapy-php)[ Packagist](https://packagist.org/packages/yoapycom/yoapy-php)[ RSS](/packages/yoapycom-yoapy-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

YoApy PHP SDK (`yoapycom/yoapy-php`)
====================================

[](#yoapy-php-sdk-yoapycomyoapy-php)

Framework-agnostic PHP client for the **YoApy** API (HMAC-signed, JSON-only). Uses cURL by default (no external deps). Optional Guzzle transport included.

```
canonical = [METHOD, PATH, TIMESTAMP, NONCE, SHA256(body)].join('\n')
signature = base64( HMAC_SHA256(canonical, hex_to_bin(secret)) )
Headers: X-Key-Id, X-Timestamp, X-Nonce, X-Signature

```

> All POST requests are **JSON-only**. Files must be provided by URL via `media_urls`.

Install (after publishing to Packagist)
---------------------------------------

[](#install-after-publishing-to-packagist)

```
composer require yoapycom/yoapy-php
```

Requirements
------------

[](#requirements)

- PHP 8.0+
- ext-json, ext-hash, ext-curl

Quick start
-----------

[](#quick-start)

```
use YoApy\SDK\YoApyClient;

$client = new YoApyClient(
  'https://api.yoapy.com',
  'your_key_id',
  'your_secret_hex', // hex string, not base64
  null,              // transport (null => CurlTransport)
  30                 // timeout seconds
);

$ping = $client->authPing();

$res = $client->createPost([
  'account'     => 'yourhandle',
  'account_ids' => ['facebook'],
  'post_type'   => 'image',
  'text'        => "My title\n\nMy description",
  'media_urls'  => ['https://example.com/image.webp'],
  'article_url' => 'https://example.com/article',
]);

if (!empty($res['task_id'])) {
  $result = $client->getTaskResult($res['task_id']);
}
```

### Using Guzzle transport

[](#using-guzzle-transport)

```
use YoApy\SDK\YoApyClient;
use YoApy\SDK\Http\GuzzleTransport;
use GuzzleHttp\Client as GuzzleClient;

$client = new YoApyClient(
  'https://api.yoapy.com',
  'your_key_id',
  'your_secret_hex',
  new GuzzleTransport(new GuzzleClient(['timeout' => 30])),
  30
);
```

CLI helper
----------

[](#cli-helper)

```
export YOAPY_BASE_URL=https://api.yoapy.com
export YOAPY_KEY_ID=your_key_id
export YOAPY_SECRET_HEX=your_secret_hex

vendor/bin/yoapy ping
vendor/bin/yoapy post '{"account":"yourhandle","account_ids":["facebook"],"post_type":"image","text":"Hi","media_urls":["https://.../image.webp"]}'
vendor/bin/yoapy task

```

Versioning
----------

[](#versioning)

Initial release: v1.0.0

License
-------

[](#license)

MIT

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance43

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/7c4bd1dc61ba1115cebce9abf7ce84249cb3ea5e537e426f59282fb650340ec2?d=identicon)[yoapycom](/maintainers/yoapycom)

---

Top Contributors

[![yoapycom](https://avatars.githubusercontent.com/u/231040695?v=4)](https://github.com/yoapycom "yoapycom (1 commits)")

### Embed Badge

![Health badge](/badges/yoapycom-yoapy-php/health.svg)

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

PHPackages © 2026

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