Skip to content
/ x-php Public

Examining Client Side PHP using WebAssembly and Web Components.

Notifications You must be signed in to change notification settings

kherrick/x-php

Repository files navigation

<x-php-app>

About

Try it out

<html><body>
<x-php>
  <script type="text/php">
    <?php
      $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.'));

      foreach ($it as $name => $entry) {
        echo "$name <br/>";
      }
  </script>
</x-php>
<script>window.__XPHP_REMOTE_PACKAGE_BASE = 'https://kherrick.github.io/x-php/assets/'</script>
<script type="module" src="https://kherrick.github.io/x-php/dist/esm/XPHP.js"></script>
</body></html>