cymatic/php-api

There is no license information available for the latest version (dev-master) of this package.

cymatic client api

dev-master 2021-09-03 17:02 UTC

This package is not auto-updated.

Last update: 2025-08-16 11:51:02 UTC


README

Cymatic client php to verify jwt

Installation

This project using composer.

$ composer require cymatic/php-api:dev-master

Usage

<?php

  require 'vendor/autoload.php';
  use CymaticApi\Cymatic;

  $settings = [
    "tenant" => [
      "name" => "cymatic",
      "clientId" => "xxxxxx-xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxx",
      "secret"   => "xxxxxx-xxxxxxx-xxxxxxxx-xxxxxxx-xxxxxx",
    ]
  ];

  $cymatic = new Cymatic($settings);

  try {
    $payload = [
      "token" => "eyxcdv ..."
    ];
    $verification = $cymatic->verify($payload);
    var_dump($verification);
  } catch (\Throwable $th) {
    echo $th;
  }