Skip to content

stellarwp/licensing-api-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Licensing API Client

⚠️ This is a read-only repository! For pull requests or issues, see stellarwp/licensing-api-client-monorepo.

A PHP client for the Liquid Web Licensing API.

💡 In most cases you should use one of the transport-specific client packages instead of installing this package directly unless you plan to provide your own HTTP client:

This package is the core API layer they build on top of.

Installation

Install with composer:

composer require stellarwp/licensing-api-client

Examples

For end-to-end API cookbook examples, see:

Short example:

<?php declare(strict_types=1);

$traceId = bin2hex(random_bytes(16));

$catalog = $api
	->withTraceId($traceId)
	->products()
	->catalog('LWSW-8H9F-5UKA-VR3B-D7SQ-BP9N', 'example.com');

Use withTraceId() when you want your own request or workflow identifier to be forwarded as X-Trace-Id. The licensing service uses that header as its request trace_id and includes it in the Axiom trace/log pipeline. Use withHeaders() for other custom headers.

Status

This package is being developed in the monorepo and published as a read-only split repository.

About

[READ ONLY] Subtree split of the Licensing API Client Core API component (see stellarwp/licensing-api-client-monorepo)

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages