• Stars
    star
    195
  • Rank 199,374 (Top 4 %)
  • Language
    Shell
  • License
    GNU General Publi...
  • Created about 8 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PhpStorm URL Handler

This package contains a launcher to open files in PhpStorm at the defined line number and an associated desktop file that conforms to the Desktop Entry Specification for use in Gnome and KDE desktop environments.

Installation

The executable phpstorm or pstorm must be in your $PATH. If it is not, either add the install location to your path

export PATH="/path/to/phpstorm/bin/phpstorm.sh:$PATH"

or symlink it to one of /usr/bin or /usr/local/bin - which already should be in your $PATH. Use sudo if needed

ln -s /path/to/phpstorm/bin/phpstorm.sh /usr/bin/phpstorm

Then copy the actual handler to your $PATH and make it executable. Use sudo if needed

cp phpstorm-url-handler /usr/bin/phpstorm-url-handler
chmod +x /usr/bin/phpstorm-url-handler

Install the .desktop file to register the mime-types. Use sudo if needed

desktop-file-install phpstorm-url-handler.desktop
update-desktop-database

Usage

It can be used to open files at the specified line from within the browser by placing a link of the following kind in the markup:

<?php
$file = "/path/to/filename.php";
$line = 35;
print "<a href='phpstorm://open?url=file://$file&line=$line'>Open with PhpStorm</a>";
// Alternate Syntax to match PhpStorm 8 for the Macintosh
print "<a href='phpstorm://open?file=$file&line=$line'>Open with PhpStorm</a>";
?>

Command-line usage

FILE="/path/to/filename.php"
LINE=35
./phpstorm-url-handler "phpstorm://open?url=file://${FILE}&line=${LINE}"

This alternative syntax matches the format used by PhpStorm 8 for the Macintosh for cross-platform compatibility.

FILE="/path/to/filename.php"
LINE=35
./phpstorm-url-handler "phpstorm://open?file=${FILE}&line=${LINE}"

This script is used in the ARCH linux package to be found at
phpstorm-url-handler https://aur.archlinux.org/packages/phpstorm-url-handler/

License

GNU GENERAL PUBLIC LICENSE

More Repositories

1

drupal-annotator

A Drupal module to integrate Open Knowledge Foundation's Annotator project.
PHP
9
star
2

php-bigbluebutton

A php library to interface a BigBlueButton server.
PHP
8
star
3

drupal-openid_connect

A mirror of the Drupal OpenID Connect module.
PHP
5
star
4

vinculum

Temporary fork of http://drupal.org/project/vinculum
PHP
2
star
5

arch-aur-symfony-cli

Shell
2
star
6

drupal-blurhash

PHP
2
star
7

arch-aur-phpunit

A mirror of the Arch Linux AUR package for phpunit
Shell
1
star
8

identity-provider-project

1
star
9

drupal-openid_connect_dynamic_registration

PHP
1
star
10

arch-aur-traefik-bin

A mirror of the Arch Linux AUR package for traefik-bin
Shell
1
star
11

drupal-attribution

PHP
1
star
12

arch-aur-php-cs-fixer

A mirror of the Arch Linux AUR package for php-cs-fixer
Shell
1
star
13

drupal-php-jenkins-template

PHP
1
star
14

arch-aur-zephir

Shell
1
star
15

arch-aur-prometheus

A mirror of the Arch Linux AUR package for prometheus
Shell
1
star
16

drupal-metis

A clone of the drupal module metis.
PHP
1
star
17

drupal-l10n_server

PHP
1
star
18

drupal-openid_connect_claims

1
star
19

waldorf.one

CSS
1
star
20

drupal-openid_connect_discovery

PHP
1
star
21

drupal-petitions-d8

PHP
1
star
22

drupal-petitions

PHP
1
star
23

identity-provider-container

Dockerfile
1
star
24

sanduhrs

Github pages
1
star
25

drupal-clipboardjs

A mirror of the Drupal clipboardjs module.
1
star
26

micropub

A Micropub module for Drupal.
1
star
27

my-drupal-template

Shell
1
star
28

open-epetition

Open system for electronic petitions.
1
star
29

arch-aur-phpcov

A mirror of the Arch Linux AUR package for phpcov.
Shell
1
star
30

auditor-consulting-bak

PHP
1
star
31

python-people-counter

Python
1
star
32

gitpod-drupal-template

Shell
1
star
33

drupal-identity-provider-profile

PHP
1
star
34

loewenzahn

PHP
1
star
35

nextcloud-client

1
star
36

drupal-embetty

PHP
1
star
37

drupal-l10n-project

1
star