Guest User

Untitled

a guest
May 22nd, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. <?php
  2. ini_set('display_errors', 'On');
  3. error_reporting(E_ALL);
  4.  
  5. $my_text = " a";
  6.  
  7. use MichelfMarkdown;
  8. $my_html = Markdown::defaultTransform($my_text);
  9.  
  10. echo "end";
  11.  
  12. $my_html = MichelfMarkdown::defaultTransform($my_text);
  13.  
  14. /path/to/
  15. |- index.php
  16. `- Michelf/
  17. |- Markdown.php
  18. |- MarkdownInterface.php
  19. `- […]
  20.  
  21. require_once 'vendor/autoload.php';
  22. use MichelfMarkdown;
  23.  
  24. $my_text = 'a';
  25. $my_html = Markdown::defaultTransform($my_text);
  26.  
  27. require_once 'Michelf/Markdown.inc.php';
  28. use MichelfMarkdown;
  29.  
  30. $my_text = 'a';
  31. $my_html = Markdown::defaultTransform($my_text);
  32.  
  33. composer require michelf/php-markdown
  34. composer dump-autoload
Add Comment
Please, Sign In to add comment