Momento PHP SDK
The Momento PHP SDK is available via the Packagist package momentohq/client-sdk-php
.
The source code can be found on GitHub: momentohq/client-sdk-php.
Requirements
- A Momento API key is required; you can get one from the Momento web console.
- At least PHP 8.0
- The grpc PHP extension. See the gRPC docs section on installing the extension.
- The protobuf C extension. See the protobuf C extension docs for installation instructions.
Resources
- Getting started with Momento Cache in PHP
- Getting started with Momento Storage in PHP
- PHP SDK examples: working example projects that illustrate how to use the PHP SDK
Integrations
- Drupal Cache Backend
- Laravel Cache - a drop-in replacement that allows you to use Momento Cache with your existing Laravel application! See also our Laravel Integration page.
- Laravel Example App - a fully operational Laravel example application that uses the Momento Laravel cache integration.
- PSR-16 Cache API - an implementation of the PHP PSR-16 cache specification backed by Momento Cache.