PHPackages                             publitio/publitio - 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. publitio/publitio

ActiveLibrary[API Development](/categories/api)

publitio/publitio
=================

PHP language interface for the Publitio RESTful API

77.0k7[2 issues](https://github.com/ob1y2k/publitio_php_sdk/issues)PHP

Since Nov 24Pushed 4y ago3 watchersCompare

[ Source](https://github.com/ob1y2k/publitio_php_sdk)[ Packagist](https://packagist.org/packages/publitio/publitio)[ RSS](/packages/publitio-publitio/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Publitio PHP SDK
================

[](#publitio-php-sdk)

PHP SDK for Publitio API. This SDK works with PHP version 5.5 and up.

Deprecated version
------------------

[](#deprecated-version)

Version 1 of this SDK has been deprecated and its use is discouraged. You can find the deprecated version on the [deprecated branch](https://github.com/ob1y2k/publitio_php_sdk/tree/deprecated).

Installation
------------

[](#installation)

This SDK is installed via [Composer](https://getcomposer.org/).

Install Composer if you haven't already:

```
curl -sS https://getcomposer.org/installer | php
```

Install the Publitio SDK:

```
php composer.phar require publitio/publitio
```

If you have already installed Composer globally, use:

```
composer require publitio/publitio
```

After installing, require the Composer autoloader:

```
require 'vendor/autoload.php';
```

Usage
-----

[](#usage)

The `\Publitio\API` class presents the main interface to the Publitio RESTful API. You can find more documentation about Publitio [here](https://publit.io/docs).

To instantiate the `API` class, provide your API key and API secret (which you can find on your [Publitio dashboard](https://publit.io/dashboard)):

```
$publitio = new \Publitio\API('', '');
```

To Make an API call, use the `call` method:

```
$response = $publitio->call($call_url, $method, $args);
```

For a list of available calls, see [the docs](https://publit.io/docs).

- $call\_url is the API call URL, for example '/files/list'.
- $method is the HTTP method, for example 'GET' or 'DELETE'. Which of these you need depends on what kind of call you are making. The method for each API URL is documented at [the docs](https://publit.io/docs).
- $args is an array of URL query parameters, such as `array('public_id' => 'foo')`.
- $response will be the response JSON parsed using `json_decode`. Note: this is a PHP object, not an array.

Use the `call` method when you aren't going to be uploading any files with the call. If you wish to upload a file, use the uploadFile or uploadRemoteFile methods:

```
$publitio->uploadFile(fopen('path/to/file.png', 'r'));
```

Documentation
-------------

[](#documentation)

For complete documentation of this SDK, see [this page](https://ob1y2k.github.io/publitio_php_sdk/html/annotated.html).

Example
-------

[](#example)

For plenty more usage examples, see the [examples](https://github.com/ob1y2k/publitio_php_sdk/tree/master/examples) directory.

```
$publitio = new \Publitio\API('', '');
$response = $publitio->call('/files/list', 'GET', array('offset' => '0', 'limit' => '10'));
var_dump($response);
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 50% 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://avatars.githubusercontent.com/u/127634281?v=4)[ennmichael](/maintainers/ennmichael)[@ennmichael](https://github.com/ennmichael)

---

Top Contributors

[![ob1y2k](https://avatars.githubusercontent.com/u/5813741?v=4)](https://github.com/ob1y2k "ob1y2k (17 commits)")[![sistemd](https://avatars.githubusercontent.com/u/15960117?v=4)](https://github.com/sistemd "sistemd (17 commits)")

### Embed Badge

![Health badge](/badges/publitio-publitio/health.svg)

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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