Download the PHP package pstoute/jarvis-error-reporter without Composer

On this page you can find all versions of the php package pstoute/jarvis-error-reporter. 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 jarvis-error-reporter

Jarvis Error Reporter

A Laravel package that sends application errors to Jarvis for automatic analysis and fixing. Think Sentry, but with AI-powered auto-remediation.

Prerequisites

Before installing this package, you'll need:

  1. n8n Instance: A running n8n server (cloud or self-hosted) to receive error webhooks and orchestrate the auto-fix workflow
  2. GitHub Access: Your Laravel application must be in a GitHub repository with API access configured
  3. Claude Code Setup: Claude Code CLI installed and configured to interact with your repositories
  4. Queue Workers (Recommended): Laravel queue workers running for asynchronous error reporting
  5. NocoDB (Optional): For tracking auto-fix attempts and outcomes

Note: This package sends error data to YOUR infrastructure (n8n webhook), not a third-party service. You have complete control over your error data.

Installation

Configuration

Add to your .env file:

That's it! Errors will automatically be captured and sent to Jarvis.

Optional Configuration

Publishing Config

To customize ignored exceptions or sensitive fields:

Test Your Installation

Verify everything is configured correctly:

This command will:

Use the --sync flag to bypass the queue and send immediately:

Manual Usage

Capture an Exception Manually

Add Context

Middleware Example

For multi-tenant applications or complex context tracking, create a middleware:

Register in app/Http/Kernel.php:

What Gets Sent

Each error report includes:

Sensitive Data

The following fields are automatically redacted:

Security & Privacy

What Data Leaves Your Application

By default, Jarvis sends comprehensive error context to help with auto-fixing:

⚠️ Important: Review these settings carefully for production environments.

Source Code Inclusion (JARVIS_INCLUDE_SOURCE)

When enabled (default: true), the package sends:

Privacy Considerations:

Recommendations:

Data Sent to Your n8n Webhook

All data is sent to your infrastructure (not a third-party service):

Best Practices:

Architecture

How Auto-Fix Works

  1. Error Occurs: Your Laravel app throws an exception
  2. Capture: Jarvis Error Reporter captures comprehensive context
  3. Queue (Optional): Job queued for async delivery to prevent blocking
  4. Send: HTTP POST to your n8n webhook with full error details
  5. Orchestrate (n8n workflow):
    • Creates/updates GitHub issue with error details
    • Updates NocoDB tracking
    • Clones repository locally
    • Invokes Claude Code with error context
    • Claude analyzes error and writes fix
    • Runs automated tests to verify fix
  6. Deploy:
    • High Confidence: Push directly to main branch
    • Medium Confidence: Create PR for human review
  7. Notify: Send notification via ntfy with rollback option

Troubleshooting

Errors Not Being Sent

Check Configuration:

This will validate your settings and attempt to send a test error.

Common Issues:

  1. Queue Not Processing

    • Verify queue worker is running: php artisan queue:work
    • Check queue jobs table for failed jobs
    • Review storage/logs/laravel.log for queue errors
    • Try sending synchronously: php artisan jarvis:test --sync
  2. Network/Firewall Issues

    • Verify n8n webhook URL is accessible: curl -X POST YOUR_JARVIS_DSN
    • Check firewall rules on both application and n8n servers
    • Ensure Docker containers can reach external networks (if using Docker)
    • Verify DNS resolution for your n8n hostname
  3. Configuration Problems

    • Ensure JARVIS_ENABLED=true in .env
    • Verify JARVIS_DSN is set and correct
    • Check that error isn't in ignored_exceptions list
    • Confirm environment matches JARVIS_AUTOFIX_ENVIRONMENTS (if expecting auto-fix)
  4. Rate Limiting
    • Check logs for "Rate limit reached" messages
    • Increase JARVIS_RATE_LIMIT_PER_MINUTE if needed
    • Adjust JARVIS_DEDUP_WINDOW for deduplication sensitivity

Debugging Tips

Enable Debug Logging:

Check Laravel Logs:

Verify Payload Structure: Add temporary logging in SendJarvisReport.php:

Test Webhook Manually:

Queue Worker Not Running

Forge/Envoyer: Ensure queue workers are configured in deployment Vapor: Queues are required - cannot send synchronously Docker: Add queue worker as separate service in docker-compose.yml Local: Run php artisan queue:listen in a separate terminal

Still Having Issues?

  1. Review the full error logs: storage/logs/laravel.log
  2. Check n8n workflow execution logs
  3. Verify GitHub repository access from your n8n instance
  4. Open an issue: GitHub Issues

Comparison to Sentry

Feature Sentry Jarvis
DSN-based config ✓ ✓
Auto exception capture ✓ ✓
Rate limiting ✓ ✓
Deduplication ✓ ✓
User context ✓ ✓
Source code context ✓ ✓ (more aggressive)
Sensitive data scrubbing ✓ ✓
Queued sending ✓ ✓
Auto-fix attempts ✗ ✓
GitHub issue creation ✗ ✓
Your infrastructure ✗ ✓
Monthly cost $26+ $0

Environment-Specific Setup

Laravel Forge

Configuration:

  1. Add environment variables in Forge dashboard
  2. Configure queue worker:
    • Navigate to site → Queue
    • Add worker: php artisan queue:work --tries=3
  3. Ensure server can reach your n8n instance (check firewall rules)

Recommended Settings:

Laravel Vapor

Configuration:

  1. Add to vapor.yml:

  2. Add secrets via Vapor CLI:

Important:

Recommended Settings:

Docker / Docker Compose

Configuration: Add to your docker-compose.yml:

Network Considerations:

Local Development

Recommended Approach: Disable in local, or use separate n8n instance

Why disable locally?:

Testing Locally:

Platform-Specific Tips

Platform Key Considerations
Forge Configure queue workers in dashboard, check firewall
Vapor Must use queues, watch payload size limits
Envoyer Similar to Forge, ensure queue workers restart on deploy
Heroku Add worker dyno, set buildpack, use env vars
RunCloud Configure supervisor for queue, add env vars
Docker Network connectivity, separate queue service
Kubernetes Create separate queue deployment, use ConfigMap/Secrets

Requirements

License

MIT


All versions of jarvis-error-reporter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/http 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 pstoute/jarvis-error-reporter contains the following files

Loading the files please wait ...