PHP code example of xakki / reflection-info

1. Go to this page and download the library: Download xakki/reflection-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/ */

    

xakki / reflection-info example snippets




akki\ReflectionInfo\Analyzer;
use Xakki\ReflectionInfo\ReflectionInfo;

class MyClass {
    private string $secret = 's3cr3t';
    public int $publicProp = 123;
    
    public function doSomething(string $param1, bool $param2 = true): void
    {
        // ...
    }
}

$myObject = new MyClass();

ReflectionInfo::renderObjectInfo($myObject);