Repository navigation
READY.
LOAD "LARAVEL",8,1
SEARCHING FOR LARAVEL
LOADING
READY.
RUN
The first stable release of the BASIC framework for web artisans who number their lines in tens. Stable in the sense that line numbers never move. We do not RENUM.
What you get
- Routing with parameters. Routes are
DATAstatements;/users/{id}works,GET /gotoredirects to itself forever. - Controllers as
GOSUBs, dispatched by anON...GOSUBline thatgosubtisan buildgenerates for you. - Blade-style templates (
.blade.bas):{{ }}is HTML-escaped at line 3500,{!! !!}is not. Layouts are "line 3000, three times". - GOTOquent, an ORM that reads CSV files. Migrations: a text editor.
- JSON API (
/api/users,/api/users/{id}), hand-stitched withCHR$(34). - Error pages:
?UNDEF'D STATEMENT ERROR IN 404, with real interpreter details only whenAPP_DEBUG=true. - gosubtisan, the CLI:
build,serve,route:list,make:controller,test,inspire,about.renumis deliberately not implemented. - 14 tests, written in curl and grep, run on every push and inside the Docker image.
Docker, done properly (for a joke)
docker run --rm -p 8000:8000 ghcr.io/dcarrero/laravel-basic(amd64 and arm64, also tagged1.0.0).- Non-root user, read-only filesystem, no capabilities, tmpfs logs the app user can actually write, and a healthcheck that asks
ARE YOU ALIVE?every 30 seconds. - Security headers on every response (CSP, X-Content-Type-Options, X-Frame-Options, Referrer-Policy), request size limits and an execution timeout.
Fixed on the way to 1.0
- Logs were written to the void: the tmpfs was owned by root. Now it belongs to BASIC.
./gosubtisan testcould not rebuild inside the image becausebuild/was root's.- Without a
.env,ENVIRON$returned garbage and the app name came out as noise. Sane defaults, plus a test. - The header no longer escapes the screen on phones. Responsive, unlike a 14-inch CRT.
Also new
- Homepage: https://dcarrero.github.io/laravel-basic/
- Real screenshots and a demo GIF in the README.
- Docs in
docs/: architecture, gosubtisan, deployment, testing, contributing. - Issue templates, including one for porting it to FORTRAN.
Known limitations
POST requests, CSRF protection, sessions and local variables are not included. Neither is a reason to use this in production.
READY.
█