Giter Club home page Giter Club logo

phpconsole's Introduction

phpconsole for MODX

This extra integrates phpconsole into the MODX CMS. You will see all $modx->log() calls in phpconsole instead of the default error log. You can also use $modx->phpconsole->send($anything) to send any data to phpconsole. You can even log XPDOObjects with phpconsole, since they are automatically converted to an array.

Configuration

You can either use the system setting phpconsole.config (JSON string) for the configuration of phpconsole or you can save your configuration into a phpconsole-config.inc.php file (PHP array) into your MODX config folder. This is a basic JSON configration for your phpconsole.config system setting:

{
    "debug": 0,
    "defaultProject": "default",
    "projects": {
        "default": {
            "apiKey": "your-api-key-here",
            "encryptionPassword": "optional-end-to-end-encryption-password"
        }
    },
    "backtraceDepth": 3,
    "cookiesAllowed": 1
}

For more information about the configuration please follow the phpconsole docs: https://github.com/phpconsole/phpconsole/blob/master/CONFIGURATION.md

Installation

You can install phpconsoleX via the MODX Package Manager. Make sure to update the configuration after the installation – you need to add your api key!

phpconsole's People

Stargazers

 avatar

Watchers

 avatar  avatar

phpconsole's Issues

Update phpconsole

phpconsole package was updated…

You can now send a third parameter ($metadata) and put "fileName" and "lineNumber" in there like so:
p('hello world', array(), array('fileName' => '/var/www/myapp/index.php', 'lineNumber' => 123));

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.