clean/phpatlas

0.3.0 2025-05-16 14:45 UTC

This package is auto-updated.

Last update: 2025-05-16 18:21:47 UTC


README

Latest Stable Version Total Downloads Monthly Downloads License PHP Version Require

PhpAtlas is a lightweight PHP reflection utility that allows you to fetch short metadata descriptions and PHP manual links for PHP functions or class methods.

Installation

via Composer

"require": {
  "clean/phpatlas": "dev-master"
}

Features

  • Reflect class methods and global functions
  • Generate direct links to php.net manual pages

Example of usage

use Clean\PhpAtlas\ClassMethod;

$method = new ClassMethod('ArrayIterator::count');

echo $method->getMethodShortDescription(); // e.g. "Count elements"
echo $method->getMethodPHPDocLink();       // https://www.php.net/manual/en/arrayiterator.count.php

// for standalone functions
$function = new ClassMethod('explode');
echo $function->getMethodPHPDocLink(); // https://www.php.net/manual/en/function.explode.php

License

This package is licensed under the MIT License. See the LICENSE file for details.