PHP code example of remember / annotations

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

    

remember / annotations example snippets


composer 

class Test extends \Remember\Annotations\Annotation
{
    /**
     * @Message("你是假的")
     */
    const ENUM_INVALID_TOKEN=800;
}

$message=Test::getMessage(Test::ENUM_INVALID_TOKEN);