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

ActiveLibrary[API Development](/categories/api)

nextdeveloper/publitio
======================

PHP language interface for the Publitio RESTful API

v1.0.1(1y ago)01.7k↑100%1PHP

Since May 24Pushed 1y agoCompare

[ Source](https://github.com/nextdeveloper-nl/publitio)[ Packagist](https://packagist.org/packages/nextdeveloper/publitio)[ RSS](/packages/nextdeveloper-publitio/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

Our Release and why we forked;
==============================

[](#our-release-and-why-we-forked)

ℹ️ We created this library to be able to use it with composer and maintain the library to support various Laravel versions.

Original documentation is as below;

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

28

—

LowBetter than 54% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

725d ago

### Community

Maintainers

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

---

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)")[![yakari007](https://avatars.githubusercontent.com/u/95028646?v=4)](https://github.com/yakari007 "yakari007 (3 commits)")

---

Tags

publitionextdeveloper

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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