Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
dcovington 4abcfb3c52 Add 'CLAUDE.MD' 1 semana atrás
app Add framework guide and fix session/migration/error-handler bugs 1 semana atrás
config Switch default database to SQLite and add phpLiteAdmin 1 semana atrás
database/migrations init 1 semana atrás
docker Switch default database to SQLite and add phpLiteAdmin 1 semana atrás
docs Add framework guide and fix session/migration/error-handler bugs 1 semana atrás
framework Add framework guide and fix session/migration/error-handler bugs 1 semana atrás
public init 1 semana atrás
resources Add framework guide and fix session/migration/error-handler bugs 1 semana atrás
storage init 1 semana atrás
tests init 1 semana atrás
.env.example Switch default database to SQLite and add phpLiteAdmin 1 semana atrás
.gitignore init 1 semana atrás
AGENTS.MD Add 'AGENTS.MD' 1 semana atrás
CLAUDE.MD Add 'CLAUDE.MD' 1 semana atrás
Dockerfile Switch default database to SQLite and add phpLiteAdmin 1 semana atrás
command.php init 1 semana atrás
composer.json init 1 semana atrás
composer.lock init 1 semana atrás
docker-compose.yml Switch default database to SQLite and add phpLiteAdmin 1 semana atrás
phpunit.xml init 1 semana atrás
readme.md Add framework guide and fix session/migration/error-handler bugs 1 semana atrás
server.php init 1 semana atrás

readme.md

Whoosh website

To run the local development server, try:

export PHP_ENV=prod && php -S 127.0.0.1:8000 -t .

To make requests with cURL, try:

curl -X DELETE http://127.0.0.1:8000/old-home

Running with Docker

docker compose up -d --build

This starts two services:

  • app — nginx + php-fpm, served at http://localhost:8080
  • db — MySQL 8, exposed on host port 33060 (only used if DB_CONNECTION=mysql)

The default database connection is SQLite (database/database.sqlite), configured via DB_CONNECTION in .env / docker-compose.yml. On first boot the app container automatically creates the SQLite file with the correct permissions and runs migrations. To switch to MySQL instead, set DB_CONNECTION=mysql in docker-compose.yml.

To run migrations manually (e.g. after adding a new migration file):

docker compose exec app php command.php migrate
docker compose exec app php command.php migrate --fresh   # drops all tables first, for a clean slate

phpLiteAdmin

A SQLite admin UI is available at http://localhost:8081, password admin (change it via the PHPLITEADMIN_PASSWORD environment variable in docker-compose.yml). It's a development-only tool — don't expose port 8081 outside your local machine.

Framework guide

This app is built on a small custom MVC framework in framework/. See docs/framework.md for how routing, controllers, views, models/migrations, validation, sessions, caching, queues, and the CLI commands all work.

Powered by TurnKey Linux.