PHP code example of exposer / class-exposer
1. Go to this page and download the library: Download exposer/class-exposer 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/ */
exposer / class-exposer example snippets
// Include the ClassExposer Class
the ClassExposer
$myExposedClass = new Exposer\ClassExposer(new MyClass());
// Access all methods and properties as normal
$myExposedClass->myPrivateMethod();
$myExposedClass->myPrivateProperty = "foo";
echo $myExposedClass->myPrivateProperty;