PHP code example of adp / php-dto
1. Go to this page and download the library: Download adp/php-dto 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/ */
adp / php-dto example snippets
$class = new ReflectionClass(static::class);
$properties = $class->getProperties(ReflectionProperty::IS_PUBLIC);
foreach ($properties as $property) {
if ($property->isStatic()) {
continue;
}
$data[$property->getName()] = $property->getValue($this);
}
bash
php composer.phar
text
"adp/php-dto": "*"