PHP code example of staabm / rector-view-scope

1. Go to this page and download the library: Download staabm/rector-view-scope 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/ */

    

staabm / rector-view-scope example snippets


class Controller {
   /**
    * @var string
    */
   public $hello;
}

echo $hello;

/**
 * @var string
 */
echo $hello;