2017 © Pedro Peláez
 

library php-debugbar-clevercloud

Adding information from instance running on clever cloud for the php debugbar

image

grummfy/php-debugbar-clevercloud

Adding information from instance running on clever cloud for the php debugbar

  • Wednesday, August 16, 2017
  • by Grummfy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 94 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 18 % Grown

The README.md

Debug bar information about clever cloud instance

Adding information from instance running on clever cloud for the php debugbar., (*1)

Install & configuration

composer require --dev grummfy/php-debugbar-clevercloud

Then add to your debugbar :, (*2)

$debugbar->addCollector(new Grummfy\DebugBar\CleverCloudCollector());

You can also say to hide some value by giving them to the debug bar:, (*3)

$debugbar->addCollector(new Grummfy\DebugBar\CleverCloudCollector(['APP_ID']));

Integration to other debug bar

On any bar based on php-debugbar, it will be the same., (*4)

An example with laravel:, (*5)

Debugbar::addCollector(new Grummfy\DebugBar\CleverCloudCollector());

List of data exposed

  • APP_ID: the ID of the application.
  • INSTANCE_ID: the ID of the current instance (scaler) of your application.
  • INSTANCE_TYPE: The type of the instance (scaler).
  • COMMIT_ID: the commit ID used as a base to deploy your application.
  • APP_HOME: the absolute path of your application on the server.
  • INSTANCE_NUMBER: the number of this instances inside all the sacaler (if you got 3 scaler it can be a number between 0 to 2)

More information of environment variables., (*6)

The Versions

16/08 2017

dev-master

9999999-dev

Adding information from instance running on clever cloud for the php debugbar

  Sources   Download

MIT

The Requires

 

by Avatar Grummfy

debug debugbar clevercloud clever-cloud

16/08 2017

1.0.0

1.0.0.0

Adding information from instance running on clever cloud for the php debugbar

  Sources   Download

MIT

The Requires

 

by Avatar Grummfy

debug debugbar clevercloud clever-cloud