koriym / php-ontology
dev-master
2021-12-17 10:41 UTC
Requires
- php: ^7.4 || ^8.0
- koriym/psr4list: ^1.2
Requires (Dev)
- bamarni/composer-bin-plugin: ^1.4
- phpunit/phpunit: ^9.5
This package is auto-updated.
Last update: 2024-11-17 17:09:30 UTC
README
Read the words used in arguments, methods, etc. from the source code.
Installation
composer install
Usage
See demo.
$phpOntology = (new PhpOntology())('Koriym\PhpOntology', __DIR__ . '/Fake'); foreach ($phpOntology as $class) { $classes = $class(); foreach ($classes as $method) { assert($method instanceof DocMethod); printf("Method name: title:%s type:%s desc:%s\n", $method->name, $method->title, $method->description); foreach ($method->params as $param) { assert($param instanceof DocParam); printf("Param: name:%s type:%s desc:%s\n", $param->name, $param->type, $param->description); } } }