PHP code example of mensbeam / microformats

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

    

mensbeam / microformats example snippets


\MensBeam\Microformats::fromUrl(string $url, array $options = []): ?array

\MensBeam\Microformats::fromFile(string $file, string $contentType, string $url, array $options = []): ?array

\MensBeam\Microformats::fromString(string $input, string $contentType, string $url, array $options = []): array

\MensBeam\Microformats::fromHtmlElement(\DOMElement $input, string $url, array $options = []): array

\MensBeam\Microformats::toJson(array $data, int $flags = 0, int $depth = 512): string