oladoyinbov
I left the platform already :)
> Why is this tool different from PHP ParseDown or any other markdown libraries?
Well, I created this tool as a wrapper of parseDown initially to fully support version php 8.x, since the parseDown library was originally built for PHP 5 and the library codebase hasn't been updated yet till now.
> So, what is so special about this tool?
I added more functionalities like converting markdown files to HTML files directly and also converting markdown contents to HTML files?
<?php
use FastVolt\Helper\Markdown;
$markdown = Markdown::new();
print $markdown -> setContent( "## Hello World" ) -> toHtml(); // <h2>Hello World</h2>
?>
So Easy and Expressive!!
> GITHUB REPO: https://github.com/fastvolt/markdown (Please star and contribute to improve the project :) )
I created a new library to help convert markdown content or file to HTML easily, it has support for newer version of PHP (v8.x).
Usage:
composer require fastvolt/markdown
<?php
use FastVolt\Helper\Markdown;
$sample = " ## Hello, World ";
# init Markdown object $html = Markdown::new();
# set markdown data to convert $html -> setContent( $sample );
# convert data to markdown print $html -> toHtml(); // <h2>Hello, World</h2>
Markdown to HTML Converter Library for PHP
PHP Type Alias
i was kinda wondering maybe it's worth it to write an RFC on PHP type alias. this will be really useful in the sense of maintenance, re-usability, readability and many more..``` <?phptype T = bool|int;type Result = string;function greeting(T $input): Result { return match() { true, 1 => 'hello user :) ', false, 2 => 'good-bye user' } }```What's your opinion on this?