PHPackages                             wouterj/inspector - 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. wouterj/inspector

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

wouterj/inspector
=================

A fast inspector to inspect and edit files

v1.0.0-BETA1(13y ago)07PHP

Since Jan 22Pushed 13y ago1 watchersCompare

[ Source](https://github.com/wouterj/inspector)[ Packagist](https://packagist.org/packages/wouterj/inspector)[ RSS](/packages/wouterj-inspector/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (6)Versions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7ce95705086f01b21391d7d43f71e5156fa6202b0c9c7138c97a6e34abffc44f/68747470733a2f2f7472617669732d63692e6f72672f576f757465724a2f696e73706563746f722e706e67)](https://travis-ci.org/WouterJ/inspector)

Inspector
=========

[](#inspector)

Inspector is a simple tool that can be used to search in a directory for a given string or pattern.

Installation
------------

[](#installation)

Inspector is available as a composer package on packagist. Installing it is quite simple:

```
$ composer create-project wouterj/inspector

```

Usage
-----

[](#usage)

> This is a quick documentation, advantage documentation is added during the BETA period

Inspector has just one command at this moment, called `inspect`. This will inspect a directory:

```
# searches for files which contains 'hello'
$ php inspector.php inspect -p 'hello'

```

This command has multiple options:

- `--pattern` (`-p`): This is the pattern which you are looking for. (**required**)

    ```
    # searches for files which contains 'foo' or 'bar'
    $ php inspector.php inspect -p '/(foo|bar)/'

    ```
- `--dir` (`-d`): This is the directory to search in, if this is empty it will search in the current directory.

    ```
    # searches in the %current_dir%/hello directory
    $ php inspector.php inspect -p 'foo' -d hello

    ```
- `--filter` (`-f`): This can be a Regex, to determine which files should be ignored, or a name of one of the build in filters (more about this in [the filters section](#filters)).

    ```
    # ignores all php files
    $ php inspector.php inspect -p 'foo' -f '*.php'

    ```

### Filters

[](#filters)

Inspector has one build-in filter at the moment. Filters provide a solution for common `--filter` pattern.

#### GitIgnoreFilter

[](#gitignorefilter)

This filter will search for a `.gitignore` file in the root of the document and ingores every file that is in there.

```
$ php inspector.php inspect -p 'foo' --filter gitignore

```

Contributing
------------

[](#contributing)

Inspector love contributors. Please, fork this repo, create a new branch, improve this code and open a PR. Inspector uses [the Symfony Coding Standards](http://symfony.com/doc/current/contributing/code/standards.html)

If you do not want to contribute with writing code, you can also help to review the issues/PRs.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4864d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6155db5d38999238ba21fc58a9e613adb354d846f6e74936dfd7fd505fb48bd?d=identicon)[Wouter J](/maintainers/Wouter%20J)

---

Top Contributors

[![wouterj](https://avatars.githubusercontent.com/u/749025?v=4)](https://github.com/wouterj "wouterj (62 commits)")

###  Code Quality

TestsBehat

### Embed Badge

![Health badge](/badges/wouterj-inspector/health.svg)

```
[![Health](https://phpackages.com/badges/wouterj-inspector/health.svg)](https://phpackages.com/packages/wouterj-inspector)
```

###  Alternatives

[symfony/maker-bundle

Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.

3.4k111.1M568](/packages/symfony-maker-bundle)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[shyim/danger-php

Port of danger to PHP

8544.9k](/packages/shyim-danger-php)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
