PHP code example of kubotak-is / php-del

1. Go to this page and download the library: Download kubotak-is/php-del 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/ */

    

kubotak-is / php-del example snippets


public function code() {
    /** php-del start flag-a */
    $something = 1;
    /** php-del end flag-a */
}

public function code() {
}

use Hoge\Fuga\Piyo; // php-del line flag-a

public function code() {
    /** php-del start flag-a */
    $something = 1;
    /** php-del ignore start */
    $ignore = 2;
    /** php-del ignore end */
    /** php-del end flag-a */
}

public function code() {
    $ignore = 2;
}



/**
 * php-del file flag-a
 */
class DeleteClass {}
json
{
  "dirs": [
    "src"
  ],
  "extensions": [
    "php"
  ]
}

/vendor/bin/php-del