cryodrift/projecttpl

Project Template to create the cryodrift/fw rootfiles and scaffolding

Maintainers

Package info

github.com/cryodrift/projecttpl

Type:project

pkg:composer/cryodrift/projecttpl

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

0.1.10 2026-01-15 14:10 UTC

This package is auto-updated.

Last update: 2026-02-15 13:43:25 UTC


README

Small PHP framework for CLI, SSR, SQLite, and zero-logic templates

cryodrift/fw is a lean PHP framework designed for developers who want full control, minimal abstractions, and a command-line driven workflow. It combines server-side rendering, strict separation of concerns, and powerful SQLite tooling in a small, explicit codebase.

Philosophy

  • Predictable, visible control flow
  • Identical behavior in CLI and Web
  • No logic in templates
  • SQLite as a first-class database (with migrations)
  • Clear boundaries between layers
  • Small, readable codebases

Design Principles

  • Dependency Injection for everything
  • Server-Side Rendering by default
  • Minimal JavaScript, no frontend lock-in
  • Per-user filesystem and database isolation
  • Predictable bootstrap and error handling
  • No globals or magic state
  • Predictable, visible control flow

CryoDrift is meant to be read, understood, and modified without surprises.

Quickstart - WARNING remember THIS!

first time setup (dir can be multiple)

  • run this once (we dont need to migrate databases,download files everytime)
   php index.php -echo -sessionuser="you@localhost.lan" /sys install -a -dir=src
  • run this everytime you change a config.php (regenerates the cached config files for cli and web)
   php index.php -echo -sessionuser="you@localhost.lan" /sys install -dir=src -dir=vendor/cryodrift  

Install packages (runs Cli::install in each App)

  • run this everytime you change the schema ()
   php index.php -echo -sessionuser="you@localhost.lan" /sys modules -dir=src/yourapp

Commandline

  • show routes and help
   php index.php