STCMS Documentation
Complete guide to building modern, secure React/PHP applications with STCMS framework
How To Use STCMS
Complete guide to building with STCMS - Hybrid PHP/React CMS
Quick Start
- 1. Install STCMS:
composer require gemvc/stcms - 2. Initialize project:
php vendor/gemvc/stcms/bin/stcms init - 3. Install dependencies:
npm install - 4. Build assets:
npm run build - 5. Start server:
php -S localhost:8000
What You Get with STCMS
- • 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
- • Multi-Language Support - Built-in language routing
- • JWT Authentication - Secure API communication
Quick Reference
Common Commands
composer require gemvc/stcms- Install STCMSphp vendor/gemvc/stcms/bin/stcms init- Initialize projectnpm install- Install frontend dependenciesnpm run build- Build production assetsphp -S localhost:8000- Start dev server
File Locations
pages/*.twig- Twig pagestemplates/*.twig- Layout templatesassets/js/components/*.jsx- React componentsassets/js/registry.js- Component registrypublic/assets/build/app.js- Built JS bundle