This documentation contains work-in-progress information for future Elastic Stack and Cloud releases. Use the version selector to view supported release docs. It also contains some Elastic Cloud serverless information. Check out our serverless docs for more details.
Configuration
editConfiguration
editAlmost every aspect of the client is configurable. Most users only need to configure a few parameters to suit their needs, but it is possible to completely replace much of the internals if required.
Custom configuration is accomplished before the client is instantiated, through
the ClientBuilder
class. You can find all the configuration options and
check sample code that helps you replace the various components.
To learn more about JSON in PHP, read Dealing with JSON arrays and objects in PHP.