What problem does it solve?
This Skill provides a comprehensive upgrade path for legacy Silverstripe 3 projects to Silverstripe 4, ensuring seamless migration with parity, not redesign.
Core Features & Use Cases
- Assessment: Identifies package differences, prepares for migration, and sets up a legacy instance.
- Directory Structure: Renames
mysite to app, introduces a public directory for assets and configuration.
- Dependencies: Updates
composer.json for compatibility with Silverstripe 4 and modern PHP requirements.
- Namespacing: Implements PSR-4 autoloading and maps database class names to their new locations.
- Database Schema: Resolves preflight issues like FULLTEXT indexes and table collisions.
- Data Migration: Handles file migration, namespace migration, and custom SQL tasks.
- Templates: Updates templates for Silverstripe 4 compatibility.
- Build & Verify: Ensures the build process works correctly and performs frontend and admin QA.
- Code Quality & CI: Enforces code quality with tools like PHPCS, PHPStan, and PHPUnit.
Quick Start
Run the silverstripe-3-to-4-upgrade skill to begin the upgrade process.