PHPackages                             sbominator/scaninator - 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. [Security](/categories/security)
4. /
5. sbominator/scaninator

ActiveLibrary[Security](/categories/security)

sbominator/scaninator
=====================

v0.1.2(1y ago)051MITPHPCI passing

Since Mar 16Pushed 1y ago4 watchersCompare

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

READMEChangelog (5)Dependencies (2)Versions (9)Used By (1)

Scaninator
==========

[](#scaninator)

A PHP dependency scanner that analyzes PHP files to extract and resolve all include/require statements. This tool can scan both local files and PHP files from GitHub repositories.

Requirements
------------

[](#requirements)

- PHP 7.0 or later
- Composer
- Git (for GitHub repository scanning)
- PHP Tokenizer extension

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

[](#installation)

1. Clone the repository:

    ```
    git clone https://github.com/sbominator/scaninator.git
    cd scaninator
    ```
2. Install dependencies with Composer:

    ```
    composer install
    ```

Usage
-----

[](#usage)

### Command Line Interface

[](#command-line-interface)

The simplest way to use Scaninator is through the command line:

```
php cli.php
```

#### Examples

[](#examples)

Scan a local file:

```
php cli.php path/to/file.php
```

Scan a file from a GitHub repository:

```
php cli.php https://github.com/owner/repo/blob/main/path/to/file.php
```

### Programmatic Usage

[](#programmatic-usage)

You can also use Scaninator in your own PHP scripts:

```
