InstanceIO / Component framework

Build static or dynamic websites with components.

A component-based PHP framework with HTMx and Docker ready out of the box. Export to flat HTML for S3, serverless, or IPFS.

PHPHTMxDockerIPFS
Hero.phpInstanceIO
class Hero extends Component
{
  public array $defaults = [
    'title' => 'InstanceIO'
  ];

  public function __construct(
    public array $params,
    public string $component = __DIR__ . '/Hero'
  ) {
    parent::__construct($this->params, $this->component);
  }
}
PHPComponent classes
HTMxServer-driven UI
DockerDev to production
IPFSDecentralized export
Capabilities

One framework for the way websites actually ship.

Compose reusable components, serve dynamic pages, or compile the same application to flat HTML when the deployment calls for it.

01

Component-based

Keep PHP, HTML, and CSS together. Compose and extend components without repeating structure.

02

HTMx ready

Build server-driven interactions without bringing a JavaScript framework into every page.

03

Docker first

Use one command for local development, dynamic production, flat-file production, and watching.

04

Static export

Compile to HTML for S3, serverless functions, traditional hosting, or content-addressed storage.

05

API integration

Fetch remote component templates and render them locally with your own styles and logic.

06

CLI tooling

Scaffold components, controllers, routes, Docker environments, and builds from the terminal.

Component syntax

Small files. Clear ownership. Infinite composition.

A component is a PHP class, an HTML template, and a stylesheet. Pass attributes, set defaults, handle data, or compose child components.

Read the component docs
Hero.htmlMarkup
<section class="hero">
  <div class="container">
    <h1>{%title%}</h1>
    <p>{%subtitle%}</p>
    <a href="/docs" class="btn">
      Get started
    </a>
  </div>
</section>
01DevelopScaffold components locally
02ComposeRender pages from reusable parts
03ConnectUse HTMx and external APIs
04BuildExport a production-ready dist
Dynamic to static

Choose the runtime at deploy time.

Run the full PHP application when you need dynamic behavior. Build flat HTML when you want a simple, portable artifact for a bucket, CDN, or IPFS.

One sourceDynamic app or static export
Start building

Ship your next website with InstanceIO.

Install the framework, scaffold a component, and keep your deployment options open.