1. Go to this page and download the library: Download componenta/tokenizer 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/ */
componenta / tokenizer example snippets
use Componenta\Tokenizer\Tokenizer;
$declarations = (new Tokenizer())->parse(<<<'PHP'
namespace App;
final readonly class User {}
interface UserRepository {}
trait Timestamped {}
enum UserStatus: string { case Active = 'active'; }
PHP);