PHP code example of stevebauman / unfinalize

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

    

stevebauman / unfinalize example snippets


final class Foo
{
    final public function bar()
    {
        // ...
    }
}

/**
 * @internal
 */
class Foo
{
    /**
     * @internal
     */
    public function bar()
    {
        // ...
    }
}

class Foo
{
    private $bar;
}

class Foo
{
    protected $bar;
}

class Foo
{
    private function bar()
    {
    }
}

class Foo
{
    public function bar()
    {
    }
}
bash
php vendor/bin/unfinalize run vendor/package/src/File.php