PHPackages                             pete001/frost-php-sdk - 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. pete001/frost-php-sdk

ActiveLibrary[API Development](/categories/api)

pete001/frost-php-sdk
=====================

PHP SDK for the Poet Frost API

1.2(8y ago)010MITPHP

Since Feb 15Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pete001/poet-php-sdk)[ Packagist](https://packagist.org/packages/pete001/frost-php-sdk)[ Docs](https://github.com/pete001/poet-php-sdk)[ RSS](/packages/pete001-frost-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (7)Versions (4)Used By (0)

Po.et Frost API PHP SDK
=======================

[](#poet-frost-api-php-sdk)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/097fe51267a83138708ee017e8ec4b7ea1466ab6c6feb14ca01e9bf4680b21e9/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706574653030312f706f65742d7068702d73646b2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pete001/poet-php-sdk/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/945a1a780d338992753114c7b2f8070f66853d646f616cffef867e3dcb569ac6/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706574653030312f706f65742d7068702d73646b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pete001/poet-php-sdk/?branch=master)[![Build Status](https://camo.githubusercontent.com/e73f113cbd7684fb494c9ed639470bab0eb9ab9b906e4700b36d6c86ad472561/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f706574653030312f706f65742d7068702d73646b2f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/pete001/poet-php-sdk/build-status/master)[![StyleCI](https://camo.githubusercontent.com/bb98fefee02783a13cd26684ffe36bc8ab98119c9a1e7e9ea5b9c730f8c59748/68747470733a2f2f7374796c6563692e696f2f7265706f732f3132313636373432342f736869656c643f6272616e63683d6d6173746572)](https://styleci.io/repos/121667424)

You think blockchain is cool? Check √

You're a techie publisher who wants to stamp and protect their work? Check √

You think Po.et is the most awesome platform to do this on? Check √

You ignore the haters, and pursue your love for sweet fresh PHP 7? Check √

Well alright then, sounds like you're in the right place!

Background
----------

[](#background)

You already passed the check test, so all you need are the [official docs](https://docs.frost.po.et/docs/getting-started).

Installing
----------

[](#installing)

```
composer require pete001/frost-php-sdk
```

Configuration
-------------

[](#configuration)

Dont check in dat private key yo, use the dot env!

Sign up and fetch your API key from [here](https://frost.po.et/).

Add it to the `.env` in the project root.

Usage
-----

[](#usage)

Because i like xmas, i made a simple factory to save time:

```
$api = (new FrostFactory)->api();
```

So far there are 3 juicy methods:

### Create Work

[](#create-work)

```
$work = $api->createWork([
    'name' => 'I am a pickle',
    'datePublished' => '2018-02-15T20:12:01+00:00',
    'dateCreated' => '2018-02-14T19:50:21+00:00',
    'author' => 'Pickle Rick',
    'tags' => 'pickle rick morty unimpressed',
    'content' => 'Rick tells Morty to come to the garage, and Morty discovers that Rick has turned himself into a pickle but is unimpressed.'
]);

print_r($work);

Array
(
    [workId] => 46b6144b7fc6825caa3cf4b83149226f8d3f7bc0b20e6780c5d80423d1a5b86a
)
```

### Get Work

[](#get-work)

```
$work = $api->getWorkById('46b6144b7fc6825caa3cf4b83149226f8d3f7bc0b20e6780c5d80423d1a5b86a');

print_r($work);

Array
(
    [name] => I am a pickle
    [datePublished] => 2018-02-15T20:12:01+00:00
    [dateCreated] => 2018-02-14T19:50:21+00:00
    [author] => Pickle Rick
    [tags] => pickle rick morty unimpressed
    [content] => Rick tells Morty to come to the garage, and Morty discovers that Rick has turned himself into a pickle but is unimpressed.
)
```

### Get All Works

[](#get-all-works)

```
$work = $api->getWorks();

print_r($work);

Array
(
    [0] => Array
        (
            [name] => I am a pickle
            [datePublished] => 2018-02-15T20:12:01+00:00
            [dateCreated] => 2018-02-14T19:50:21+00:00
            [author] => Pickle Rick
            [tags] => pickle rick morty unimpressed
            [content] => Rick tells Morty to come to the garage, and Morty discovers that Rick has turned himself into a pickle but is unimpressed.
        )

    [1] => Array
        (
            [name] => I am still a pickle
            [datePublished] => 2018-02-15T21:12:01+00:00
            [dateCreated] => 2018-02-14T20:50:21+00:00
            [author] => Pickle Rick
            [tags] => pickle rick morty unimpressed repetitive
            [content] => Rick tells Morty once again, to come to the garage, and Morty discovers that Rick is still a pickle. He remains unimpressed.
        )

)
```

Tests
-----

[](#tests)

Project has 100% test coverage, but due to my hipster nature, the CI is run over at Gitlab. So you'll just have to take my word for it.

To run the test suites, simply execute:

```
vendor/bin/phpunit
```

If you wanna get fancy and check code coverage:

```
vendor/bin/phpunit --coverage-html tests/coverage
```

If you're as OCD as i am, you might wanna run some static analysis:

```
vendor/bin/phpmetrics --report-html="tests/static" .
```

Contributing
------------

[](#contributing)

All contributions are welcome! Just fire up a PR and pinky swear the code passes the tests, has new tests written to maintain 100% coverage and make sure its PSR-2 compliant:

```
vendor/bin/php-cs-fixer fix --verbose
```

License
-------

[](#license)

As tempting as it is to troll the world by centralising the distribution of an app for the decentralised world... This is free, free for all!

MIT License

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Total

3

Last Release

3008d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77fab8d6db218cc200b2123adbbd6a6e6af011f222dea6ee907998fd3598fc01?d=identicon)[pete001](/maintainers/pete001)

---

Top Contributors

[![pete001](https://avatars.githubusercontent.com/u/410428?v=4)](https://github.com/pete001 "pete001 (8 commits)")

---

Tags

apiblockchaincryptofrostphppoetsdkphpapisdkcryptoblockchainpoetfrost

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/pete001-frost-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/pete001-frost-php-sdk/health.svg)](https://phpackages.com/packages/pete001-frost-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

23414.2M16](/packages/hubspot-api-client)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[resend/resend-php

Resend PHP library.

564.7M21](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

553.3M7](/packages/checkout-checkout-sdk-php)[manamine/php-eos-rpc-sdk

PHP SDK for the EOS RPC API

187.5k](/packages/manamine-php-eos-rpc-sdk)

PHPackages © 2026

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