PHPackages                             lookyman/chronicle-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. lookyman/chronicle-api

AbandonedArchivedLibrary[API Development](/categories/api)

lookyman/chronicle-api
======================

Client library for interacting with Chronicle

2.0.1(8y ago)9201MITPHPPHP ^7.1

Since Jul 18Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lookyman/chronicle-api)[ Packagist](https://packagist.org/packages/lookyman/chronicle-api)[ RSS](/packages/lookyman-chronicle-api/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (11)Versions (5)Used By (0)

Lookyman/Chronicle
==================

[](#lookymanchronicle)

Client library for interacting with [Chronicle](https://github.com/paragonie/chronicle).

[![Build Status](https://camo.githubusercontent.com/45fccedcb9f65b6bc8add5af903baec13c38e22702ba4a7a99e3a72651330695/68747470733a2f2f7472617669732d63692e6f72672f6c6f6f6b796d616e2f6368726f6e69636c652d6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/lookyman/chronicle-api)[![Coverage Status](https://camo.githubusercontent.com/8ff5b39df698525ada0b88bf35c4e2fe0ab86d2842f036e6a7355474ea674ce9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6c6f6f6b796d616e2f6368726f6e69636c652d6170692f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/lookyman/chronicle-api?branch=master)[![Downloads](https://camo.githubusercontent.com/9d736e39cc419aaf3b09e9dbda1e49b36bf5b426a72200cfd05d4d46d22774e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6c6f6f6b796d616e2f6368726f6e69636c652d6170692e737667)](https://packagist.org/packages/lookyman/chronicle-api)[![Latest stable](https://camo.githubusercontent.com/0e5c069df0fc25c4a76278a292f436f41093b245105d33ac164a4cfefeb74d24/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6c6f6f6b796d616e2f6368726f6e69636c652d6170692e737667)](https://packagist.org/packages/lookyman/chronicle-api)[![PHPStan level](https://camo.githubusercontent.com/1aedc2893290c3cfd26e130e64a48b5a73e84027b77dbd5448a7ec8eef31cfe3/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d372d627269676874677265656e2e737667)](https://github.com/phpstan/phpstan)[![License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/lookyman/chronicle-api/blob/master/LICENSE)

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

[](#installation)

```
composer require lookyman/chronicle-api
```

Usage
-----

[](#usage)

```
use Lookyman\Chronicle\Api;
use ParagonIE\ConstantTime\Base64UrlSafe;
use ParagonIE\Sapient\CryptographyKeys\SigningPublicKey;
use ParagonIE\Sapient\CryptographyKeys\SigningSecretKey;

$api = new Api(
	new Client(), // Client must implement Http\Client\HttpAsyncClient
	new RequestFactory(), // RequestFactory must implement Interop\Http\Factory\RequestFactoryInterface
	'https://chronicle.uri',
	new SigningPublicKey(Base64UrlSafe::decode('chronicle public key')) // optional, omit if you don't care about validating API responses
);
var_dump($api->lastHash()->wait());

// you must authenticate first before you can publish a message
$api->authenticate(
	new SigningSecretKey(Base64UrlSafe::decode('your secret key')),
	'your client id'
);
var_dump($api->publish('hello world')->wait());
```

For implementations of client and request factory, you can use for example [Guzzle 6 HTTP Adapter](https://github.com/php-http/guzzle6-adapter) and [HTTP Factory for Guzzle](https://github.com/http-interop/http-factory-guzzle) respectively.

All endpoints return `Http\Promise\Promise`, so you can either just `->wait()` for the response, or handle it asynchronously with `->then()`. Responses are just plain arrays, look up the structure in the Chronicle's documentation.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity61

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

Total

4

Last Release

3031d ago

Major Versions

0.2.0 → 1.0.02017-07-21

1.0.0 → 2.0.02017-08-16

PHP version history (2 changes)0.2.0PHP ^7.0

2.0.1PHP ^7.1

### Community

Maintainers

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

---

Top Contributors

[![lookyman](https://avatars.githubusercontent.com/u/3863468?v=4)](https://github.com/lookyman "lookyman (38 commits)")

---

Tags

apichronicleclientparagoniephpsapientapichronicle

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/lookyman-chronicle-api/health.svg)

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

###  Alternatives

[wordpress/php-ai-client

A provider agnostic PHP AI client SDK to communicate with any generative AI models of various capabilities using a uniform API.

26236.6k14](/packages/wordpress-php-ai-client)[apigee/apigee-client-php

Client library for connecting to the Apigee Edge API.

27558.7k3](/packages/apigee-apigee-client-php)[darthsoup/php-whmcs-api

WHMCS API client for PHP

2317.3k4](/packages/darthsoup-php-whmcs-api)[pay-now/paynow-php-sdk

PHP client library for accessing Paynow API

18193.9k2](/packages/pay-now-paynow-php-sdk)[dhope0000/lxd

PHP-based API wrapper for LXD REST API.

136.2k](/packages/dhope0000-lxd)[friendsofapi/sylius-api-client

A client for Sylius APIs

106.6k](/packages/friendsofapi-sylius-api-client)

PHPackages © 2026

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