Download the PHP package pantheon-systems/terminus-site-debug without Composer

On this page you can find all versions of the php package pantheon-systems/terminus-site-debug. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package terminus-site-debug

Logs Parser

Actively Maintained

Terminus v1.x Compatible

A Terminus plugin that:

This will also pull logs on an environment with multiple containers.

Learn more about Terminus and Terminus Plugins at: https://pantheon.io/docs/terminus/plugins/

Examples

Download all logs from dev.

Only download nginx-access.log and nginx-error.log logs.

Exclude nginx-access.log and nginx-error.log from download.

Parsing Nginx Access Logs

Search nginx-access logs with 301 status code via PHP.

Show how many times the IP visited the site.

Top response by HTTP status.

Top 403 requests

Top 404 requests

Top PHP 404 requests.

Top PHP 404 requests in full details.

Top 502 requests

Top IPs accessing 502.

To get 502 URIs run this command first: terminus logs:parse:nginx-access site_name.env --grouped-by=502

Count the request that hits the appserver per second.

Top request methods.

Parsing Nginx Error Logs

Search nginx-error.log for access forbidden error.

Search nginx-error.log for SSL_shutdown error.

Search nginx-error.log for "worker_connections" error.

This error means that the site has no enough PHP workers. Consider upgrading to a higher plan to add more appservers.

To get the latest entries.

You can adjust the results by passing a numeric value to --filter which has a default value of 10.

Parsing PHP Error Logs

Search for the latest entries.

Search php-error logs with 301 "Uncaught PHP Exception" error.

Search to all the logs.

Parsing PHP Slow Logs

Search for the latest entries.

Top functions by number of times they called.

Slow requests grouped by minute

Parsing MySQL Slow Log

Display everything.

Count of queries based on their time of execution.

Display only the first N queries in the output. Sort output by count i.e. number of times query found in mysqld-slow-query.log.

This queries might be a good option for caching the result.

Display only the first N queries in the output.

Top queries which returned maximum rows.

Logs listing

To list all the log files.

Support

This plugin is not working on Windows environment. You may want to Dockerized your Terminus to use this kind of plugin that uses nix commands to parse the logs.

Installation

For help installing, see Manage Plugins

To install this in Terminus 3, run this command:

Credits


All versions of terminus-site-debug with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pantheon-systems/terminus-site-debug contains the following files

Loading the files please wait ....