Search by

adachsoft / code-search-contract

Arkadiusz Adach

Package info

gitlab.com/a.adach/code-search-contract

Issues

pkg:composer/adachsoft/code-search-contract

Statistics

Installs: 5

Dependents: 1

Suggesters: 0

Stars: 0

v0.2.0 2026-10-26 12:52 UTC

This package is not auto-updated.

Last update: 2026-10-26 11:55:30 UTC


README

A contract library for searching symbols in PHP code.

Purpose

This library defines a stable, extensible contract (interfaces, DTOs, value objects, collections, and exceptions) for searching symbols in PHP code:

  • types (classes, interfaces, traits, enums, and anonymous classes),
  • methods,
  • type relationships (implements and extends, including descendant searches).

It does not include an indexing or search implementation.

Installation

composer require adachsoft/code-search-contract

Main facade

use AdachSoft\CodeSearchContract\CodeSearchFacadeInterface;

An implementation of this facade is provided by a separate library.

Quick start

composer install
composer test

API scope

  • CodeSearchFacadeInterface is the main facade.
  • DTOs and value objects are in the AdachSoft\CodeSearchContract namespace and its subnamespaces.
  • Collections are based on adachsoft/collection; public APIs do not expose arrays.
  • Exceptions are the primary mechanism for signaling errors.

See the src/ directory for the source structure.