Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 1.47 KB

File metadata and controls

43 lines (29 loc) · 1.47 KB

Clean\PhpAtlas

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.