Skip to content

Ban is an open-source client for Ray, a powerful and easy to use debugging library

License

Notifications You must be signed in to change notification settings

janyksteenbeek/ban

Repository files navigation

Ban - Debugging Client

GitHub release (latest by date) GitHub GitHub issues

Ban is an open-source client for Ray, a powerful and easy-to-use debugging library. Ban provides a user-friendly interface to interact with Ray and visualize debugging data sent from your applications.

  • Visualize debugging data in a well-organized and easy-to-navigate interface.
  • Support for multiple languages and frameworks, including PHP, JavaScript, Python, and more.
  • Display logs, dumps, queries, and other debugging information.
  • Easy to use interface with light and dark themes.

Getting Started

Prerequisites

  • PHP 8.2
  • Composer
  • Node.js (latest LTS version)
  • npm (latest stable version)

Installation for development

  1. Clone the repository:
git clone git@github.com:janyksteenbeek/ban.git
  1. Install the dependencies:
composer install --dev
npm install
php artisan native:migrate
  1. Run the application:
php artisan native:serve

The application will now start the underlying API & websocket server running on http://localhost:23517/ and the desktop application automatically open.

Usage

To use Ban with your application, you'll need to install the Ray library and integrate it into your project. Follow the documentation for your specific language or framework:

Once you've integrated Ray, you can start sending debugging data to the Ban client by following the instructions in the documentation.

Example: Using Ban with PHP

To use Ban with your PHP application, you'll need to install the spatie/ray package. Follow these steps:

Installation

  1. Install the spatie/ray package using Composer:
composer require spatie/ray --dev

This command will install the Ray package as a development dependency in your project.

Usage

  1. In your PHP code, use the ray() function to send debugging data to the Ban client:
<?php

require_once 'vendor/autoload.php';

ray('Hello, Ban!');

// Your application code...

This code will send the message Hello, Ban! to the Ban client. You can now use the ray() function to send various types of debugging data, such as variables, objects, and queries, to the Ban client.

For more information on the spatie/ray package and its usage, refer to the official Ray documentation.

Once you've integrated Ray into your PHP application, you'll be able to send debugging data to the Ban client, where you can analyze and inspect it in a user-friendly interface.

License

Ban is released under the MIT License. See the LICENSE file for more details.

Security

If you discover any security-related issues, please email ban@janyk.dev instead of using the issue tracker. All security vulnerabilities will be promptly addressed.

About

Ban is an open-source client for Ray, a powerful and easy to use debugging library

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages