darles / remote-call-bundle
Symfony2 RemoteCallBundle
Installs: 816
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 4
Forks: 1
Open Issues: 0
Type:symfony2-bundle
Requires
- php: >=5.4.0
- symfony/framework-bundle: ~2.3
Requires (Dev)
- twig/twig: ~1.5
This package is not auto-updated.
Last update: 2024-04-08 22:24:49 UTC
README
The DarlesRemoteCallBundle adds links to quick open current Controller, Template & Entities in PHPStorm IDE using RemoteCall Plugin (http://plugins.jetbrains.com/plugin/6027?pr=phpStorm) in Symfony2 profiler toolbar.
Demo
- https://www.dropbox.com/s/dfcvdmrbtvpyt51/remote_call_bundle_example.png
- http://www.youtube.com/watch?v=fV5G2sVM0hw
Installation
- Install RemoteCall plugin to your PHPStorm IDE
http://plugins.jetbrains.com/plugin/6027?pr=phpStorm
- Add DarlesRemoteCallBundle in your composer.json require-dev section:
{ "require-dev": { "darles/remote-call-bundle": "dev-master" } }
- Enable the bundle in the kernel on the DEV environment:
<?php // app/AppKernel.php public function registerBundles() { if (in_array($this->getEnvironment(), array('dev', 'test'))) { //.. $bundles[] = new Darles\Bundle\RemoteCallBundle\DarlesRemoteCallBundle(); } }
- Open your Symfony2 application in dev environment, you should see "Open in PHPStorm" tab in profiler toolbar.
License
This bundle is under the MIT license.
XDebug & RemoteCall
Enable RemoteCall links on your XDebug stack trace by adding this line to your php.ini
xdebug.file_link_format="javascript:var rq = new XMLHttpRequest(); rq.open('GET', 'http://localhost:8091?message=%f:%l', true); rq.send(null);"