PHP code example of avtomon / sami-markdown

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

    

avtomon / sami-markdown example snippets


$sami["twig"]->addExtension(new Markdown\SamiTwigExtension());

public function __construct(bool $pretty_print = false);

public function getFunctions();

public static function short_description(Reflection $refl, bool $oneliner = true, int $max = -1);

public static function long_description(Reflection $refl, bool $oneliner = false);

public static function deprecated(Reflection $refl, bool $notice = true);

public static function todo(Reflection $refl);

public static function see(Reflection $refl);

public static function href(string $ltxt, string $lurl, bool $namespace = false, string $desc = null);

public static function toc(array $tree, int $depth);

public static function param_hint(ParameterReflection $param, bool $link = false);

public static function param_default(ParameterReflection $param);

public static function method_hint(MethodReflection $method, bool $link = false);

public static function method_access(MethodReflection $method);

public static function method_signature(MethodReflection $method, bool $incname = true);

access function name(paramterers [= "value"]);

public static function method_source_url(MethodReflection $method);

public static function render_methods(array $methods);

public static function render_class(ClassReflection $class);

public static function render_classes(array $classes);

public static function render_namespace(string $namespace, array $namespaces, array $classes);

public static function render(array $namespaces, array $classes);