PHPackages                             zemmelmootez/phplocator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. zemmelmootez/phplocator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zemmelmootez/phplocator
=======================

Click-to-code for PHP: automatic source mapping for browser extensions like LocatorJS

v1.1.0(8mo ago)34[1 PRs](https://github.com/zemmelmootez/phplocator/pulls)MITHTMLPHP &gt;=7.0

Since Aug 27Pushed 3mo agoCompare

[ Source](https://github.com/zemmelmootez/phplocator)[ Packagist](https://packagist.org/packages/zemmelmootez/phplocator)[ Docs](https://github.com/zemmelmootez/phplocator)[ RSS](/packages/zemmelmootez-phplocator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

PHP Locator - Click to Code
===========================

[](#php-locator---click-to-code)

### Instantly jump from browser elements to your PHP source code

[](#instantly-jump-from-browser-elements-to-your-php-source-code)

[![Packagist Version](https://camo.githubusercontent.com/4fd316a444c2c06c6abb6a9b03d0e1312291dfca16e8f125b612f287c706b6f2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a656d6d656c6d6f6f74657a2f7068706c6f6361746f723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zemmelmootez/phplocator)[![GitHub Stars](https://camo.githubusercontent.com/cb02dec97e7aa33b7a375a0476df310740cb7928b6e304e1bd512de342f0306f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f7a656d6d656c6d6f6f74657a2f7068706c6f6361746f723f7374796c653d666c61742d737175617265)](https://github.com/zemmelmootez/phplocator)[![License](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE)[![Downloads](https://camo.githubusercontent.com/60f0b6b6b30903a3a318f06db1e054550d82dfeae29a1ecc6c46515d0a5ed947/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a656d6d656c6d6f6f74657a2f7068706c6f6361746f723f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zemmelmootez/phplocator)

🌐 **[Live Website &amp; Demo](https://phplocator-hbfl72dni-zemmelmootezs-projects.vercel.app)**

---

What is PHP Locator?
--------------------

[](#what-is-php-locator)

PHP Locator brings **click-to-code** functionality to PHP development. Inspired by [LocatorJS](https://www.locatorjs.com/), 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:

[](#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
------------

[](#installation)

### Step 1: Browser Extension

[](#step-1-browser-extension)

**Chrome/Edge/Brave/Opera:**

- [🚀 Install from Chrome Web Store](https://chrome.google.com/webstore/detail/php-locator/bnhcmehnfejdabgfjlpndjpahkjfhchb) ✅ **NOW LIVE!**

**Manual Installation:**

1. Download the [latest release](https://github.com/zemmelmootez/phplocator/releases)
2. Extract the ZIP file
3. Open `chrome://extensions/`
4. Enable **"Developer mode"**
5. Click **"Load unpacked"** → Select the `extension` folder

### Step 2: PHP Package

[](#step-2-php-package)

#### Option A: Composer (Recommended)

[](#option-a-composer-recommended)

```
composer require zemmelmootez/phplocator
```

The package auto-loads and starts working immediately - no additional setup required.

#### Option B: Manual Installation

[](#option-b-manual-installation)

```
git clone https://github.com/zemmelmootez/phplocator.git
```

```

```

---

Usage
-----

[](#usage)

### The Simple Process:

[](#the-simple-process)

1. **Hold `Alt` key**
2. **Hover over any HTML element** (highlights appear)
3. **Click the element** → VS Code opens to the exact line

### Framework Examples:

[](#framework-examples)

**Vanilla PHP:**

```

    Welcome
    Content here

```

**Laravel Blade:**

```
@extends('layouts.app')
@section('content')

        {{ $title }} {{-- Alt+Click opens this Blade file --}}

@endsection
```

**WordPress:**

```
