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(2y ago)02.2k↑350%1PHP

Since May 24Pushed 2y agoCompare

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

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

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community15

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

770d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/95028646?v=4)[Harun Barış Bulut](/maintainers/yakari007)[@yakari007](https://github.com/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

[statamic/cms

The Statamic CMS Core Package

4.8k3.6M986](/packages/statamic-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.5M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

273.0k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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