PHP code example of crodas / class-info

1. Go to this page and download the library: Download crodas/class-info library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

crodas / class-info example snippets



ser = 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) {
    }
}