Coder Social home page Coder Social logo

cloudworxx / quo-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from protoqol/quo-php

0.0 0.0 0.0 2.26 MB

This specific package is the Quo companion package for PHP. Quo for PHP is framework-agnostic and can be run on any PHP ^7.1 project using composer. Quo-php has zero-dependencies.

Home Page: https://packagist.org/packages/protoqol/quo-php

License: MIT License

PHP 100.00%

quo-php's Introduction

Quo for php

Github action status Packagist Version Follow Protoqol on Twitter

Quo for PHP

Quo is still in beta and should not be used in production environments. But with the help of a config file (see CLI) you can easily disable Quo on production environments.

Quo is a free, open-source, client-side debugger and can be found here.

This specific package is a companion package for Quo for PHP.

Using a framework? No problem.

Quo is framework-agnostic and can run on any PHP (see requirements) project using composer.

Want to help keep open-source sustainable?

You can help by contributing to the code or donating using the button below! Both are highly appreciated and contribute directly to keeping open-source free and sustainable!

Donate

Installation

Requirements

Requirement Version
PHP ^7.1, ^8.1
ext-json *
ext-iconv *
ext-curl *

To install run the following command.

composer require protoqol/quo-php

Usage

Quo has a function called quo() which you can call anywhere, every variable passed to it will appear in your Quo Client.

quo($var, ...$moreVars);

Configuration

Note that for the beta version of Quo a custom hostname and port can not be used yet, this will always default to 127.0.0.1:7312. However, when your PHP application does not run on the top level of your OS it might be required to change the hostname and port. The config hostname should always point to your top level localhost address.

Quo for PHP has an .ini file located at meta/quo-config.ini. This file stores the configuration Quo uses. It is recommended to use a custom configuration for this, more about this in the CLI section (see "Publish Quo config").

[general]
# Should Quo be enabled in this environment
ENABLED = 1

[exception]
# Should Quo throw an exception when no connection is made to the client?
# If you're trying to get Quo to work this might come in useful, if not, keep it off.
NO_CONNECTION = 0

[http]
# Where Quo sends its payload to
HOSTNAME = 127.0.0.1
PORT = 7312

[encryption]
# Encrypt all data sent?
ENABLED = 0
# If ENABLED = 1 you should supply the public key retrieved from the Quo client here.
PUBLIC_KEY = <key>

CLI

You can edit the configuration via the CLI with the following commands.

Change default host and port.

php ./vendor/bin/quo [hostname] [port]

Publish Quo config (quo-config.ini) to your project root directory, this overwrites the internal configuration.

php ./vendor/bin/quo publish-config

Change host and port to pre-configurations.

php ./vendor/bin/quo -vb (or --virtualbox)  # Changes it to `10.0.2.2:7312`
php ./vendor/bin/quo -d (or --docker)       # Changes it to `host.docker.internal:7312`
php ./vendor/bin/quo -l (or --local)        # Changes it to `127.0.0.1:7312`

And you're all set!

Issues

Issues, bugs and feature requests can be reported here!

Contributing

See Contributing to see how you can contribute to Quo for PHP!

Contributors

License

Quo for PHP is licensed under the MIT License. Please see License File for more information.

quo-php's People

Contributors

quintenjustus avatar

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.