How to embed GraphViz in Markdown
Use this image in your html page:
| <?php | |
| /** | |
| * For the full copyright and license information, please view | |
| * the LICENSE file that was distributed with this source code. | |
| */ | |
| declare(strict_types=1); | |
| namespace App; |
| # Edit this configuration file to define what should be installed on | |
| # your system. Help is available in the configuration.nix(5) man page | |
| # and in the NixOS manual (accessible by running ‘nixos-help’). | |
| { config, pkgs, lib, ... }: | |
| { | |
| imports = | |
| [ # Include the results of the hardware scan. |
| <?php | |
| /** | |
| * For the full copyright and license information, please view | |
| * the LICENSE file that was distributed with this source code. | |
| */ | |
| declare(strict_types=1); | |
| namespace Test; |
| <?php | |
| declare(strict_types=1); | |
| namespace App; | |
| use Marcosh\LamPHPda\Either; | |
| use Exception; | |
| include __DIR__ . '/vendor/autoload.php'; |
| \lstdefinelanguage{nix}{ | |
| frame = single, | |
| breaklines=true, | |
| aboveskip=1ex, | |
| backgroundcolor=\color{gray!25}, | |
| belowskip=1ex, | |
| columns=fullflexible, | |
| framerule=0pt, | |
| framexrightmargin=0em, | |
| framexleftmargin=0em, |
| { | |
| description = "PHP App demo"; | |
| inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable"; | |
| inputs.flake-utils.url = "github:numtide/flake-utils"; | |
| inputs.phps.url = "github:loophp/nix-shell"; | |
| outputs = { self, nixpkgs, flake-utils, phps }: flake-utils.lib.eachDefaultSystem | |
| (system: | |
| let |
| <?php | |
| /** | |
| * For the full copyright and license information, please view | |
| * the LICENSE file that was distributed with this source code. | |
| */ | |
| declare(strict_types=1); | |
| namespace App; |
| <?php | |
| declare(strict_types=1); | |
| namespace Snippet; | |
| use Faker\Generator; | |
| use loophp\TypedGenerators\TG; | |
| include __DIR__ . '/vendor/autoload.php'; |