Download the PHP package softgala/laravel-claude-button without Composer

On this page you can find all versions of the php package softgala/laravel-claude-button. 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 laravel-claude-button

Laravel AI Debug Button

Latest Version on Packagist

A Laravel package that adds a one-click button to your error pages. Instantly copy error details to your clipboard and optionally open the file in VS Code. Perfect for AI-assisted debugging with ChatGPT, Claude, Copilot, or any AI assistant.

Features

Installation

Install the package via Composer:

The package will automatically register its service provider.

Configuration

Publish the configuration file (optional):

This will create a config/claude-button.php file where you can customize:

Note on trace_depth:

Usage

Once installed, the package will automatically add a "Copy Error for AI" button to any 500 error pages in your allowed environments.

Testing

Visit the test route to see it in action:

How it Works

  1. When an error occurs, a settings card and button appear in the bottom-right corner
  2. Settings Card: Toggle "Open VS Code" on/off (preference saved in browser)
  3. Click the button to:
    • Copy error details to clipboard (works in HTTP and HTTPS)
    • Save error report to storage/app/claude-errors/latest-error.md
    • Open VS Code at the exact line where the error occurred (if enabled)
  4. Paste into your AI assistant:
    • Open ChatGPT, Claude, Copilot, or any AI chat
    • Paste (Cmd+V / Ctrl+V) - error details already in clipboard
    • Or open storage/app/claude-errors/latest-error.md and share the file
  5. Get instant AI-assisted debugging and solutions!

What Gets Copied

The button formats error information cleanly and concisely:

That's it! Just the error message and file location. This clean format works perfectly with any AI assistant:

Security

Requirements

Publishing Views

To customize the button appearance, publish the views:

This will create resources/views/vendor/claude-button/button.blade.php.

Error Files

The package automatically saves error details to:

Old error files are automatically cleaned (keeps last 10).

Example error file:

These markdown files can be:

Tips for Best Results

  1. With Any AI Assistant:

    • Click button, paste error into ChatGPT/Claude/Copilot/etc
    • Error is already formatted and ready to go
    • Get instant analysis and solutions
  2. VS Code Toggle:

    • Toggle "Open VS Code" OFF if you prefer clipboard only
    • Your preference is saved in browser localStorage
    • Perfect for quick copy without opening editor
  3. Non-HTTPS Development:

    • Works perfectly on http://localhost or any HTTP context
    • Smart clipboard fallback ensures it always works
    • No SSL certificate required
  4. Team Debugging:
    • Share the latest-error.md file with teammates
    • Everyone can paste the same error into their preferred AI tool
    • Consistent error format across team

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for details.

Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

Changelog

Please see CHANGELOG.md for recent changes.

License

MIT-0 (MIT No Attribution). Use it however you want, no attribution required. Please see LICENSE for more information.

Credits

Support


All versions of laravel-claude-button with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.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 softgala/laravel-claude-button contains the following files

Loading the files please wait ...