Start · Your first extension
Your first extension
This guide makes a small extension called Member map: a page that lists where members live. It takes about ten minutes on a forum with developer mode on.
1. Create the extension
php artisan fs:make extension harbour/member-map
The first part is your vendor name, the second the extension's name. You can also use Developer, New extension in the admin panel; both write the same files:
extensions/harbour/member-map/
extension.json name, version and the ForumSpark versions it supports
src/Extension.php your extension class
routes/member.php pages for signed-in members
views/index.blade.php the first page
lang/en/messages.php every sentence the extension shows
README.md, CHANGELOG.md
AGENTS.md, CLAUDE.md instructions for AI coding assistants
2. Add a page
php artisan fs:make page map
The page is served at /x/harbour-member-map/map. Link to it with ext_route('harbour/member-map', 'map'). Build the page with the forum's own components, so it matches every theme.
3. Store data
php artisan fs:make table pins
Every table belongs to your extension and gets the prefix ext_harbour_member_map_. Read Pages, tables and settings for columns and settings.
4. Check it
php artisan fs:check
The check is the same robot the directory uses. It grades the extension from A to D and lists each finding with the file and line. Fix everything it marks before you build.
5. Build it
php artisan fs:build
This writes harbour-member-map-1.0.0.zip with a checksum. Upload it to the directory for review, or install it on another forum with Extensions, Upload.