Registry / utility / sebastian-code-unit

sebastian-code-unit

JSON →
library3.0.3phppackagistunverified

Collection of value objects that represent the PHP code units, used for static analysis.

composer require sebastian/code-unit
INSTALL
IMPORT
SIG · SEBASTIAN-CODE-UNI
S
sebastian-code-unit
utilityphpv3.0.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

CodeUnit
use SebastianBergmann\CodeUnit\CodeUnit;

Create a code unit for a given class and retrieve its name.

use SebastianBergmann\CodeUnit\CodeUnit; $unit = CodeUnit::forClass(MyClass::class); echo $unit->name();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
6
Amazon
2
Resources
sebastian-code-unit — pip install sebastian-code-unit · libregistry