Skip to content

Latest commit

 

History

History
 
 

examples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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"
  }
}