Skip to content

crodas/ClassInfo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

117 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ClassInfo

Get classes and functions defined in a given file. It implements a tiny PHP parser which gives you detailed informations about classes and functions defined in a file.

How to use it

<?php
require __DIR__ . "/vendor/autoload.php";

$parser = new crodas\ClassInfo\ClassInfo;
$parser->parse('demo.php');

foreach ($parser->getClasses() as $class) {
    foreach ($class->getMethods() as $method) {
    }
    foreach ($class->getProperties() as $prop) {
    }
    foreach ($class->getInterfaces() as $class) {
    }
}

About

Get classes and functions defined in a given file

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages