Download the PHP package zemmelmootez/phplocator without Composer
On this page you can find all versions of the php package zemmelmootez/phplocator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package phplocator
PHP Locator - Click to Code
Instantly jump from browser elements to your PHP source code
[](https://packagist.org/packages/zemmelmootez/phplocator) [](https://github.com/zemmelmootez/phplocator) [](LICENSE) [](https://packagist.org/packages/zemmelmootez/phplocator) 🌐 **[Live Website & Demo](https://phplocator-hbfl72dni-zemmelmootezs-projects.vercel.app)**What is PHP Locator?
PHP Locator brings click-to-code functionality to PHP development. Inspired by LocatorJS, it allows you to Alt+Click any element in your browser and instantly jump to the exact source code line in VS Code.
Key Benefits:
- Zero Configuration - Install and it works automatically
- Universal Compatibility - Works with any PHP project or framework
- Instant Navigation - Jump directly to source code in seconds
- Visual Feedback - Clear indicators show clickable elements
- Professional Workflow - Streamlines debugging and development
Installation
Step 1: Browser Extension
Chrome/Edge/Brave/Opera:
- 🚀 Install from Chrome Web Store ✅ NOW LIVE!
Manual Installation:
- Download the latest release
- Extract the ZIP file
- Open
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" → Select the
extensionfolder
Step 2: PHP Package
Option A: Composer (Recommended)
The package auto-loads and starts working immediately - no additional setup required.
Option B: Manual Installation
Usage
The Simple Process:
- Hold
Altkey - Hover over any HTML element (highlights appear)
- Click the element → VS Code opens to the exact line
Framework Examples:
Vanilla PHP:
Laravel Blade:
WordPress:
Advanced Configuration
Manual Data Attributes
For custom implementations:
Troubleshooting
Extension not working?
- ✅ Extension installed and enabled
- ✅ Developer mode enabled in browser
- ✅ VS Code installed with URL handler
- ✅ PHP package installed via Composer
No highlights appearing?
- Check HTML source for:
<!-- PHP Locator: Tracking file: ... --> - Verify Composer autoload is working
- Check browser console for errors
VS Code not opening?
- Ensure VS Code is properly installed
- Try:
code --install-extensionto register URL handler - Test with different browsers
Technical Details
How It Works:
- PHP Locator automatically injects source mapping data attributes
- Browser extension detects these attributes
- Alt+Click triggers VS Code protocol handler
- VS Code opens the exact file and line number
Supported Environments:
- PHP: 7.4+ (tested with 8.0, 8.1, 8.2, 8.3)
- Frameworks: Laravel, Symfony, WordPress, CodeIgniter, or any PHP project
- Browsers: Chrome, Edge, Brave, Opera (Firefox coming soon)
- IDEs: VS Code (PHPStorm support planned)
Contributing
We welcome contributions! Here's how to help:
- Fork the repository
- Create your feature branch (
git checkout -b feature/improvement) - Commit your changes (
git commit -m 'Add improvement') - Push to the branch (
git push origin feature/improvement) - Open a Pull Request
Development Setup:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Links
- 📦 Package: Packagist
- 🐙 Source: GitHub
- 🐛 Issues: Bug Reports
- 💬 Discussions: GitHub Discussions