Download the PHP package karontek/bcons without Composer

On this page you can find all versions of the php package karontek/bcons. 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 bcons

bcons PHP connector

This package enables you to send messages from your PHP code to the bcons console.

It allows you to perform debugging tasks, such as logging messages or the values of variables at set points in your code, displaying errors and warnings, and tracking session, cookies, and payload data.

Screenshots

bcons console in a devtools panel bcons messages shown in the devtools console Warning messages Error messages Payload sent to the server Session data Cookies data

Requirements

This package requires only PHP >= 5.3.3, allowing its use in legacy code (where it is most needed 😅).

You will also need a bcons account (there is a 'free forever' plan for 1 user and 1 project) and the free bcons browser extension.

Setup instructions

  1. Create an account at bcons.dev

    1. On the 'Account' page, copy your user token.
    2. Navigate to the Projects page, create your project, and a token will be assigned to it. Copy this token.
  2. Install the bcons browser extension.

    Chromium-based browsers (Google Chrome, Microsoft Edge, Opera, Vivaldi, Brave, etc.)

    Firefox

    After installation, click on the extension icon in your browser and select Options. Enter your user token. The browser extension adds a Bcons-User header to every request made to the domains defined in your project, using your user token. This enables the server code to send any debug messages generated by that request only to you.

    Note for Firefox users: by default, the extension won't be allowed to work on all sites. To enable it, go to the 'Add-ons and themes' menu section, click on the bcons extension, then on the 'Permissions' tab, and check the 'Access your data for all websites' option.

  3. Install the PHP package

    composer require karontek/bcons

Usage

Instantiate the bcons class.

When the bcons class is instantiated, it automatically sends debug messages including the request data payload, current session data, and cookies sent.

It will also send warning and error messages for every warning and error raised by PHP.

But the true power of bcons is unlocked with the ability to send your own messages. Use the log, warn, error methods (or any method of the Console API) to send messages and view them on your bcons console.

All methods can be chained:

Where are these messages displayed?

Messages are displayed in the bcons console, which you can access via the bcons website (log in and navigate to the Console page) or through the browser extension devtools panel. They will also appear in your browser's devtools console.

Console API support notes

Extra functions

We have added some extra functions for a better debugging experience:


All versions of bcons with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
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 karontek/bcons contains the following files

Loading the files please wait ....