- 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
Run composer update
to install the prerequisites.
MOMENTO_AUTH_TOKEN=<YOUR AUTH TOKEN> php example.php
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"
}
}