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

76.9k7[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 3d 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 27% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity30

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://www.gravatar.com/avatar/37fa18e254db516034dd6d13dd0d8071cc3fad9973ca980410f88a6bb4c20a51?d=identicon)[ennmichael](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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