1. Go to this page and download the library: Download mortenscheel/editor-links library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mortenscheel / editor-links example snippets
use function Scheel\EditorLinks\editorLink;
// Generate a link to open a file at a specific line in your editor
$link = editorLink('/path/to/your/file.php', 42);
// Output: phpstorm://open?file=/path/to/your/file.php&line=42
echo $link;
$link = editorLink($exception->getFile(), $exception->getLine());
echo "<a href=\"$link\">Open in editor</a>";
// In Symfony Console command
$output->writeln("<href=$link>Link label</>");
// In Laravel Artisan commands
$this->output->writeln("<href=$link>Link label</>");
$this->info("<href=$link>Link label</>");
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.