j-angnoe/metadata-scanner

Maintainers

Package info

github.com/j-angnoe/metadata-scanner

pkg:composer/j-angnoe/metadata-scanner

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2022-02-11 09:42 UTC

This package is auto-updated.

Last update: 2026-03-11 18:40:11 UTC


README

Scans directories for files containing @meta() annotations and collects this data. Contains both a binary for command-line usage as well as a small library for inclusion in projects.

CLI Usage

./bin/metadata ls           - list files that are included in the search
./bin/metadata search       - displays matches that occur in said files.
./bin/metadata scan         - collects the data from matches.

Library usage

$obj = new \Metadata\Scanner();
$obj->scan('/path/to/project1');
$obj->scan('/path/to/project2');

$metadata = $obj->export();