STCMS Documentation
Complete guide to building modern, secure React/PHP applications with STCMS framework
Installation & Setup
Complete guide to installing and setting up STCMS
Quick Start
Step 1: Install STCMS
composer require gemvc/stcms
Step 2: Initialize Project
php vendor/gemvc/stcms/bin/stcms init
Step 3: Install Frontend Dependencies
npm install
Step 4: Build Assets
npm run build
Step 5: Start Development Server
php -S localhost:8000
What You Get
- • Symfony Cache - Modern caching (APCu/file)
- • Symfony Dotenv - Environment management
- • Guzzle HTTP - API integration
- • Twig Templates - Server-side rendering
- • Vite Build System - React bundling
- • Security Headers - Apache configuration
Environment Configuration
File: .env
API_BASE_URL=http://localhost:80
CACHE_DRIVER=apcu
DEFAULT_LANGUAGE=en
Configure your environment variables for API endpoints, caching, and default language.
Common Issues
- • Composer not found: Install Composer first
- • Node.js required: Install Node.js for frontend builds
- • PHP 8.0+: Ensure you have PHP 8.0 or higher
- • APCu extension: Install for better performance (optional)