{"id":19240473,"url":"https://github.com/lookyman/chronicle-api","last_synced_at":"2026-01-13T23:28:02.332Z","repository":{"id":62518967,"uuid":"97046379","full_name":"lookyman/chronicle-api","owner":"lookyman","description":"Client library for interacting with https://github.com/paragonie/chronicle","archived":true,"fork":false,"pushed_at":"2018-01-25T13:01:03.000Z","size":55,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-21T08:45:02.505Z","etag":null,"topics":["api","chronicle","client","paragonie","php","sapient"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lookyman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-12T19:49:46.000Z","updated_at":"2024-05-04T16:01:53.000Z","dependencies_parsed_at":"2022-11-02T13:31:32.847Z","dependency_job_id":null,"html_url":"https://github.com/lookyman/chronicle-api","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/lookyman/chronicle-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fchronicle-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fchronicle-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fchronicle-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fchronicle-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lookyman","download_url":"https://codeload.github.com/lookyman/chronicle-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lookyman%2Fchronicle-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405132,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","chronicle","client","paragonie","php","sapient"],"created_at":"2024-11-09T17:07:38.855Z","updated_at":"2026-01-13T23:28:02.314Z","avatar_url":"https://github.com/lookyman.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lookyman/Chronicle\n\nClient library for interacting with [Chronicle](https://github.com/paragonie/chronicle).\n\n[![Build Status](https://travis-ci.org/lookyman/chronicle-api.svg?branch=master)](https://travis-ci.org/lookyman/chronicle-api)\n[![Coverage Status](https://coveralls.io/repos/github/lookyman/chronicle-api/badge.svg?branch=master)](https://coveralls.io/github/lookyman/chronicle-api?branch=master)\n[![Downloads](https://img.shields.io/packagist/dt/lookyman/chronicle-api.svg)](https://packagist.org/packages/lookyman/chronicle-api)\n[![Latest stable](https://img.shields.io/packagist/v/lookyman/chronicle-api.svg)](https://packagist.org/packages/lookyman/chronicle-api)\n[![PHPStan level](https://img.shields.io/badge/PHPStan-7-brightgreen.svg)](https://github.com/phpstan/phpstan)\n[![License](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/lookyman/chronicle-api/blob/master/LICENSE)\n\n## Installation\n\n```sh\ncomposer require lookyman/chronicle-api\n```\n\n## Usage\n\n```php\nuse Lookyman\\Chronicle\\Api;\nuse ParagonIE\\ConstantTime\\Base64UrlSafe;\nuse ParagonIE\\Sapient\\CryptographyKeys\\SigningPublicKey;\nuse ParagonIE\\Sapient\\CryptographyKeys\\SigningSecretKey;\n\n$api = new Api(\n\tnew Client(), // Client must implement Http\\Client\\HttpAsyncClient\n\tnew RequestFactory(), // RequestFactory must implement Interop\\Http\\Factory\\RequestFactoryInterface\n\t'https://chronicle.uri',\n\tnew SigningPublicKey(Base64UrlSafe::decode('chronicle public key')) // optional, omit if you don't care about validating API responses\n);\nvar_dump($api-\u003elastHash()-\u003ewait());\n\n// you must authenticate first before you can publish a message\n$api-\u003eauthenticate(\n\tnew SigningSecretKey(Base64UrlSafe::decode('your secret key')),\n\t'your client id'\n);\nvar_dump($api-\u003epublish('hello world')-\u003ewait());\n```\n\nFor 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.\n\nAll endpoints return `Http\\Promise\\Promise`, so you can either just `-\u003ewait()` for the response, or handle it asynchronously with `-\u003ethen()`. Responses are just plain arrays, look up the structure in the Chronicle's documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookyman%2Fchronicle-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flookyman%2Fchronicle-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flookyman%2Fchronicle-api/lists"}