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. 1. Install STCMS: composer require gemvc/stcms
  2. 2. Initialize project: php vendor/gemvc/stcms/bin/stcms init
  3. 3. Install dependencies: npm install
  4. 4. Build assets: npm run build
  5. 5. Start server: php -S localhost:8000

📦 Installation & Setup

Complete guide to installing and configuring STCMS

View Guide →

🔐 Authentication & Security

Learn about JWT security model and authentication

View Guide →

⚛️ React Components

Create and use React components in STCMS

View Guide →

🌍 Multi-Language Support

Implement multi-language support with RTL

View Guide →

🔌 API Integration

Integrate external APIs with caching

View Guide →

🚀 Deployment

Deploy your STCMS application to production

View Guide →

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 STCMS
  • php vendor/gemvc/stcms/bin/stcms init - Initialize project
  • npm install - Install frontend dependencies
  • npm run build - Build production assets
  • php -S localhost:8000 - Start dev server

File Locations

  • pages/*.twig - Twig pages
  • templates/*.twig - Layout templates
  • assets/js/components/*.jsx - React components
  • assets/js/registry.js - Component registry
  • public/assets/build/app.js - Built JS bundle