Download the PHP package astermd/sdk without Composer

On this page you can find all versions of the php package astermd/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

AsterMD PHP SDK

Slim, framework-agnostic PHP SDK for the AsterMD order-flow API.

Install

Quick start

Credentials are issued from your AsterMD dashboard, which is also where the full API reference lives. Load the secret from an environment variable or a secrets manager — never commit it.

Resources

sessions, intakeSubmissions, carts, checkoutEvents, teleforms, patients, opportunities, treatments, doctorsNetworks, channels, products, categories, labTests, medications, shippings, verification, geo.

Errors

Every error extends AsterMD\Sdk\Exception\AsterMDException:

Debugging

Pass debug: true with a debugFile to log every request as a copy-pasteable curl command plus its response.

Credentials are redacted by default. Bearer tokens, the client secret, PHI verification tokens, and the bodies of patients/* calls are replaced with [REDACTED]:

Pass debugRedact: false to log verbatim, including the live JWT. Never do that in production.

Log rotation

debugFile is a base path. The SDK writes one file per day derived from it and deletes files older than debugRetentionDays (default 7; 0 keeps everything):

Pruning happens once per process, and only files matching the SDK's own {name}-YYYY-MM-DD.{ext} pattern are ever removed.

Sending logs somewhere else

Supply a debugSink closure and the SDK writes no files at all — retention and delivery become yours. This works with any destination: a PSR-3 logger, a hosted log service, a cloud provider's logging API, a queue.

See docs/INTEGRATION_GUIDE.md for worked examples.

Development

Two supported workflows. Docker is the default (make build && make install). Native PHP is a one-flag opt-out (DOCKER=0 make ...).

Using Docker (default, no host PHP required)

Using native PHP on the host

Requirements: PHP >=8.4, Composer, and ext-curl/ext-json/ext-mbstring/ext-openssl.

Both paths run the same commands; only the execution context differs. CI gate order is identical: php-cs-fixer --dry-run → phpstan analyse → phpunit.

Compliance

This SDK is a client for an API that carries personal and protected health information. Using it does not by itself make your application HIPAA compliant — that depends on your own infrastructure, policies, and agreements. Contact [email protected] regarding a Business Associate Agreement.

See SECURITY.md for vulnerability reporting and credential-handling guidance.

Further reading

Audience Document
Integrators building on the SDK docs/INTEGRATION_GUIDE.md — order flow, resources, auth lifecycle, framework recipes
Contributors CONTRIBUTING.md — local setup, how to add an endpoint
Architecture docs/ARCHITECTURE.md — single-page overview
Changes CHANGELOG.md

Support

Questions, access requests, and licensing enquiries: [email protected]

License

MIT © 2026 AsterMD


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.4
ext-curl Version *
ext-json Version *
ext-mbstring Version *
ext-openssl Version *
nyholm/psr7 Version ^1.8
psr/http-client Version ^1.0
psr/http-factory Version ^1.0
psr/http-message Version ^1.1 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package astermd/sdk contains the following files

Loading the files please wait ...