Skip to content
Early access: every world free

Learn PHP and Laravel by playing.

SmithFortress is a role-playing game that teaches PHP, from your very first line of code to testing and deploying a Laravel web app. Travel eight worlds, write real code, and defeat bosses on the way.

Windows 10 or 11 · No coding experience needed · No ads

The SmithFortress dashboard: the hero Nova at level 20, a 14-day learning streak, Anvil Village 85% complete with Array functions up next, a new client contract, and daily quests.
worlds
8
lessons
107
challenges
444
client projects
15

The Coding Arena

Real code. Real tests.

Your PHP runs on your own computer and is checked against tests, with PHP's own error messages, so you learn to read what real developers see.

  • Five challenge types, from fill-in-the-blanks to writing the code yourself
  • Programs that read input work: type the input and run them
  • From World 5, you edit real Laravel apps, and test them with PHPUnit
The Coding Arena: a tournament scoreboard challenge in PHP, with the code in the editor and a result panel showing 5 of 5 checks passed.

Lessons

Learn it before you're tested on it.

Concepts arrive in a careful order, so a beginner never meets an idea they haven't been prepared for.

  • Plain-language explanations and real-world analogies
  • Working code examples with their output, explained line by line
  • Quick checks before the real challenge
An Anvil Village lesson on PHP's array functions: a code example totalling catches with array_sum, max, and min, with its output and how it works.

AI mentor

A mentor who teaches, not tells.

Ask a senior PHP and Laravel developer anything. It knows your level and where you are in the game, and guides you to the answer instead of handing it over.

TeacherHintsDebuggerCode reviewerCareer
The AI mentor explaining why a guessing game's while (true) loop keeps asking: it shows break, then asks whether fgets(STDIN) is being compared with a number.

The journey

Eight worlds, first line to production.

From Anvil Village to Crown Forge, worlds open in order, and you can't skip the fundamentals by grinding XP. Each one unlocks when you've mastered the world before it and beaten its boss. Climb the ranks all the way to Fortress Legend.

  1. 01

    Anvil Village

    Variables, strings, decisions, loops, functions, arrays, and reading errors

    Beginner
  2. 02

    Tinker's Workshop

    Files, JSON, CSV, dates, regular expressions, exceptions, and Composer

    Beginner
  3. 03

    Object Keep

    Classes, interfaces, traits, namespaces, and testing with PHPUnit

    Intermediate
  4. 04

    Web Gatehouse

    HTTP, HTML forms, cookies and sessions, SQL with PDO, and password hashing

    Intermediate
  5. 05

    Artisan Hall

    Laravel routes, controllers, Blade, migrations, and Eloquent

    Intermediate
  6. 06

    Warden's Bastion

    Validation, authentication, middleware, policies, and file uploads

    Advanced
  7. 07

    Courier Spire

    REST APIs, Sanctum tokens, pagination, rate limits, caching, and queues

    Advanced
  8. 08

    Crown Forge

    Feature tests, security, performance, Nginx, deployment, and monitoring

    Expert

What you'll build

Real projects, world by world.

Fictional clients ask for real programs, milestone by milestone, and every world ends with a boss: a bigger build, in stages, that proves you've mastered it.

  1. World 2 · Tinker’s Workshop

    Client project

    The Post Office Contact Book

    for Odo Crumb, The Hearth Bakery

    Odo knows everyone on Tinker's Row, and keeps their addresses on scraps of paper that blow out of the window every time the door opens. He needs a contact book that refuses bad entries, keeps everything safely in a file, and finds anyone in a moment.

    1. Address cards. Add contacts, refusing bad ones.
    2. Never forget. Save, load, and search the book.
    3. Open the counter. The program Odo uses at the counter.

    Throwing exceptionsJSON filesRegular expressionsCommand loops

    More from Tinker’s Workshop
  2. World 3 · Object Keep

    Client project

    The Keep's Armoury Inventory

    for Quartermaster Bram, The Keep's Armoury

    Quartermaster Bram knows every sword by its nicks, but never how many are left until a guard asks for one. He wants an inventory that knows each kind of item, warns him before anything runs low, and can be loaded from the stocktake list his clerks write.

    1. Know your kit. Categories and items that can't go wrong.
    2. The racks. Add, remove, and count what's in the armoury.
    3. The stocktake. Load the clerks' list, and print the report.

    EnumsValue objectsInterfacesMagic methodsCSV files

    More from Object Keep
  3. World 4 · Web Gatehouse

    Client project

    The Lantern Inn Bookings

    for Marta Wick, The Lantern Inn

    Marta's new booking app was a gift from her nephew, and it keeps asking for "the API". The inn seats 20 guests a night, bookings are for up to eight, and the kitchen wants a list for each day. Build what the app and the kitchen need to talk to.

    1. The bookings book. Bookings stored safely, with the inn's rules.
    2. The booking API. The app books tables with JSON.
    3. The kitchen's list. A day's bookings for the cook, and cancelling.

    PDOPrepared statementsJSON APIsStatus codes

    More from Web Gatehouse
  4. World 5 · Artisan Hall

    Client project

    The Guild Noticeboard

    for Wren Tallow, The Artisans' Guild

    The Artisans' Guild has a noticeboard for every trade, and Wren keeps them all. Every morning she reads each pin to see whether it's out of date, and every week someone complains that the fair notice is still up a month after the fair. She'd like the boards on the guild's new Laravel site, notices that know when they expire, and a command she can run (or schedule) to clear the old ones away.

    1. Boards and pins. The migration for the boards and their notices.
    2. Pins that know their dates. The Notice model: its board, its types, and which notices are current.
    3. Wren's commands. Artisan commands to prune expired notices and count current ones.

    Migrations and foreign keysEloquent relationshipsScopesArtisan commands

    More from Artisan Hall
  5. World 7 · Courier Spire

    Boss battleThe Scraper

    The Scraper

    Every courier in the valley carries the Spire's app, and the API behind it has a visitor: the Scraper. It signs in with a token from a phone lost months ago, which never expires. It counts through every parcel id and reads them all, it marks other couriers' parcels as delivered with a clerk's token, and when the mail service slowed down, recipients got three receipts each. Rebuild the API so that the app works for every courier, and for nobody else.

    1. The sign-in gate. Tokens that say what they may do, and run out.
    2. The delivery round. Each courier's own parcels, and honest deliveries.
    3. The receipts. One receipt per delivery, sent from the queue.
    4. The night shift. Expired tokens swept away while the Spire sleeps.
    More from Courier Spire
  6. World 8 · Crown Forge

    Boss battleThe Tarnish

    The Tarnish

    The coronation is in a week, and the crown's commission is in the Forge's app, which the Tarnish has been at. There are no tests, so nobody saw him slip in his mistakes: every smith sees everyone's commissions, anyone can mark anyone's work finished, a form field can set a commission's status, and the board crawls. There's no health check, the proxy isn't trusted, and his last release went out with debug mode on. Make the app fit to ship, the way a master would.

    1. The assay. Tests that catch the Tarnish at work.
    2. The repair. Mend the controller until every test passes.
    3. The safeguards. Health, proxies, headers, and maintenance, in bootstrap/app.php.
    4. The release. A release that won't start until the settings are right.
    More from Crown Forge
  7. 23 projects in all

    15 for clients and 8 boss battles, across all eight worlds.

    See every project

Each preview is real output from one of the project's tests: what a finished solution prints.

Start your journey today.

Every world is free during early access, on the Microsoft Store for Windows 10 and 11.

Get it from the Microsoft Store
Windows 10 or 11
64-bit, with a keyboard and mouse.
An internet connection
To create your account and sign in. Then lessons and challenges work offline.
PHP 8.3 or newer
Free, from windows.php.net (or Laragon or XAMPP), for coding challenges; a lesson in Anvil Village shows you how. From World 5, Composer and a Laravel 13 project.

FAQ

Questions, answered.

Something else? Write to support@zyntoka.com. The privacy policy covers SmithFortress too.

Is SmithFortress free?

Yes. SmithFortress is in early access, and while it is, all 8 worlds, every boss, and every client project are free, with no ads. If you join during early access, you keep all of it free for good.

I've never written code. Can I start?

Absolutely. Anvil Village starts from your very first line of code, and every concept is explained before you're asked to use it.

Do I need to install anything else?

For coding challenges, PHP 8.3 or newer: free from windows.php.net, and SmithFortress also finds Laragon's or XAMPP's. A lesson in Anvil Village walks you through it. From World 5 on, you create a Laravel project with Composer, and in World 7 you add Sanctum to it; the lessons show you how.

Is my code sent to your servers?

No. Code you run in the Coding Arena runs on your own computer. Only when you ask the AI mentor about your code is that question, with the code, sent through our server to generate a reply.

Is SmithFortress made by the Laravel team?

No. SmithFortress is made by Zyntoka, an independent developer. It teaches PHP and Laravel, but it isn't endorsed by or affiliated with the PHP Group or Laravel.