Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 804 Bytes

File metadata and controls

32 lines (24 loc) · 804 Bytes

SDK examples

Requirements

  • A Momento Auth Token is required, you can generate one using the Momento CLI
  • At least PHP 7
  • The grpc PHP extension. See the gRPC docs section on installing the extension.
  • Composer

Running the example

Run composer update to install the prerequisites.

MOMENTO_AUTH_TOKEN=<YOUR AUTH TOKEN> php example.php

Using the SDK in your project

Add the repository and dependency to your project's composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/momentohq/client-sdk-php"
    }
  ],
  "require": {
    "momentohq/client-sdk-php": "dev-main"
  }
}