cybercog / laravel-whoops-editor
Laravel Whoops Editor helps to open your code editor from exception stack trace.
Fund package maintenance!
paypal.me/antonkomarev
Installs: 17 094
Dependents: 0
Suggesters: 0
Security: 0
Stars: 83
Watchers: 6
Forks: 3
Open Issues: 0
Requires
- php: ^7.0
- filp/whoops: ~2.0
- illuminate/support: >=5.5.25
Requires (Dev)
- friendsofphp/php-cs-fixer: ^1.11
- orchestra/testbench: ~3.5.0
- phpunit/phpunit: ^6.0
This package is auto-updated.
Last update: 2022-02-28 23:25:32 UTC
README
Introduction
Laravel Whoops Editor helps to open your code editor from exception stack trace. Go to code editor in a blink of an eye!
This feature was introduced in Laravel 5.5.25, but unfortunately has issues on Linux machines. Laravel Whoops Editor fixes PHPStorm, IDEA and SublimeText Linux support.
Additionally allows you to open editor when using Homestead.
For Atom support you can use Mike Bronner's laravel-whoops-atom package or publish config and specify launch path in editors config section.
Contents
- Features
- Requirements
- Installation
- Configuration
- Usage
- Change log
- Contributing
- Testing
- Security
- Contributors
- Alternatives
- License
- About CyberCog
Features
- PHPStorm cross-platform support.
- IDEA cross-platform support.
- Sublime cross-platform support.
- Allow opening code editor when using Homestead.
- Following PHP Standard Recommendations:
- Covered with unit tests.
Requirements
- PHP >= 7.0.0
- Laravel >= 5.5.25
Installation
First, pull in the package through Composer:
$ composer require cybercog/laravel-whoops-editor --dev
Configuration
Package designed to work right out of the box, but you could publish configuration file to tweak settings:
$ php artisan vendor:publish --provider="Cog\Laravel\WhoopsEditor\Providers\WhoopsEditorServiceProvider" --tag="config"
Usage
Specify your editor by adding APP_EDITOR=phpstorm
in .env
file.
Optionally you can specify editor by adding editor
key to the ./config/app.php
configuration file.
'editor' => 'phpstorm',
This package provides extended Linux support for editors: phpstorm
, idea
, sublime
.
Complete list of supported editors could be found in Whoops documentation.
Protocol Handlers
If your OS trying to open file in web browser instead of code editor you should install Protocol Handler.
Editor | Protocol | Linux | MacOS | Windows |
---|---|---|---|---|
SublimeText | subl:// |
thecotne/subl-protocol | - | - |
Atom | atm:// |
eclemens/atom-url-handler | WizardOfOgz/atom-handler | - |
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Testing
Run the tests with:
$ vendor/bin/phpunit
Security
If you discover any security related issues, please email open@cybercog.su instead of using the issue tracker.
Contributors
Anton Komarev |
---|
Laravel Whoops Editor contributors list
Alternatives
License
Laravel Whoops Editor
package is open-sourced software licensed under the MIT License by Anton Komarev.Error In Document
image licensed under Creative Commons 3.0 by Kid A.
About CyberCog
CyberCog is a Social Unity of enthusiasts. Research best solutions in product & software development is our passion.