PHPackages                             chipslays/pastly-api - 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. chipslays/pastly-api

ActiveLibrary[API Development](/categories/api)

chipslays/pastly-api
====================

PHP client for Pastly API.

1.1.1(4y ago)11761MITPHP

Since May 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/chipslays/pastly-api)[ Packagist](https://packagist.org/packages/chipslays/pastly-api)[ RSS](/packages/chipslays-pastly-api/feed)WikiDiscussions master Synced 1w ago

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

🗒 PHP Pastly API Client
=======================

[](#-php-pastly-api-client)

[![GitHub Workflow Status](https://camo.githubusercontent.com/162b0c46a95725aa28a3ecb3729af467f8c24f51e0145854141165a57a417ba1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63686970736c6179732f706173746c792d6170692f7465737473)](https://camo.githubusercontent.com/162b0c46a95725aa28a3ecb3729af467f8c24f51e0145854141165a57a417ba1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f63686970736c6179732f706173746c792d6170692f7465737473)[![GitHub release (latest by date)](https://camo.githubusercontent.com/0da0586f14e3b4697315a4629132e8b235600628aa0a3796049857dd346140c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63686970736c6179732f706173746c792d617069)](https://camo.githubusercontent.com/0da0586f14e3b4697315a4629132e8b235600628aa0a3796049857dd346140c6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f63686970736c6179732f706173746c792d617069)[![GitHub](https://camo.githubusercontent.com/77f437e7781d6e9dae8bb4e85de8fb9ddb614e748f49a780f735cb3239d17c68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63686970736c6179732f706173746c792d617069)](https://camo.githubusercontent.com/77f437e7781d6e9dae8bb4e85de8fb9ddb614e748f49a780f735cb3239d17c68/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f63686970736c6179732f706173746c792d617069)

Simple client implementation for [Pastly](https://pastly.chipslays.ru) API.

> **Pastly** - The sexiest pastebin in the Internet.

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

[](#installation)

```
composer require chipslays/pastly-api
```

Usage
-----

[](#usage)

```
use Pastly\Client;

require 'vendor/autoload.php';

$client = new Client;
$token = '1622233044:6bCVU-8OI9fjtk3gXhZRJkzQeDGsJNKti2MuBM_n9V';

/** get paste */
$paste = $client->get('example-slug');
$paste = pastly_get('example-slug');

echo $paste->getText();

/** create paste */
$client->create($token, 'Hello, world!');
pastly_create($token, 'Hello, world!');

/** edit paste */
$client->edit($token, 'example-slug', [
    'title' => 'New Title',
    'syntax' => 'diff',
    'text' => "this text\n-was edited\n+successful",
]);

pastly_edit($token, 'example-slug', [
    'title' => 'New Title',
    'syntax' => 'diff',
    'text' => "this text\n-was edited\n+successful",
]);
```

More code can see in [examples](/examples/) folder.

Examples
--------

[](#examples)

Examples can be found [here](/examples/).

Tests
-----

[](#tests)

```
composer test
```

Credits
-------

[](#credits)

- [Chipslays](https://github.com/chipslays)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~4 days

Total

3

Last Release

1807d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19103498?v=4)[chipslays](/maintainers/chipslays)[@chipslays](https://github.com/chipslays)

---

Top Contributors

[![chipslays](https://avatars.githubusercontent.com/u/19103498?v=4)](https://github.com/chipslays "chipslays (19 commits)")

---

Tags

apiapi-clientclienthastebinpastebinpastebin-apipastebin-servicepastly

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chipslays-pastly-api/health.svg)

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

###  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)
