PHP code example of amylian / utils

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

    

amylian / utils example snippets


/**
 * @property mixed $prop Property automatically getted and setted by getProp and setProp
 */
class ObjectWithProperties
{
    use \Amylian\Utils\ṔropertyTrait;
    
    public $memb = null;
    
    private $prop = null;
    
    public function getProp()
    {
        return $this->prop;
    }
    
    public function setProp($value)
    {
        $this->prop = $value;
    }
    
}