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