Download the PHP package typhonius/acquia-logstream without Composer
On this page you can find all versions of the php package typhonius/acquia-logstream. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download typhonius/acquia-logstream
More information about typhonius/acquia-logstream
Files in typhonius/acquia-logstream
Package acquia-logstream
Short Description PHP library to connect to Acquia Logstream service
License MIT
Informations about the package acquia-logstream
Acquia Logstream
Pre-installation
- Run
composer install
Generating an API access token
To generate an API access token, login to https://cloud.acquia.com, then visit https://cloud.acquia.com/#/profile/tokens, and click Create Token.
-
Provide a label for the access token, so it can be easily identified. Click Create Token.
- Once the token has been generated, copy the api key and api secret to a secure place. Make sure you record it now: you will not be able to retrieve this access token's secret again.
Usage
Standalone tools
Phar file
A Phar file will be attached to each tagged release on GitHub. This can be downloaded and used immediately with php logstream.phar acquia:logstream
Shell script
A shell script has been included as a wrapper for the logstream command which will allow users to run the logstream command directly without further requirements. This can be invoked by running ./bin/logstream acquia:logstream
from the cloned directory.
PHP Library
The LogstreamManager
class can be included in any other PHP library as it has been within the Acquia Cli tool. The simplest method of including and calling this library is as follows:
`
More advanced usage allows for different options to be set and configured through methods on the LogstreamManager
class.
Command Parameters
The Logstream command takes three required arguments as parameters.
- Your Acquia API key
- Your Acquia API secret
- The environment UUID
There are also three optional parameters which can be used to filter log types, servers to stream logs from, and to enable colourisation.
Examples
`
All versions of acquia-logstream with dependencies
ratchet/pawl Version ^0.4.1
symfony/console Version ^5 | ^6
php Version ^7.4 | ^8.0.3 | ^8.1
consolidation/self-update Version ^1.2 | ^2.0 | ^3.0