marko/framework
A metapackage that bundles all core Marko packages for typical web applications.
Installation
Section titled “Installation”composer require marko/frameworkIncluded Packages
Section titled “Included Packages”These packages are automatically installed with marko/framework:
| Package | Description |
|---|---|
marko/core | Bootstrap, DI container, module loader, plugins, events |
marko/routing | Route attributes, router, middleware |
marko/cli | Command-line interface and console commands |
marko/errors | Error handling abstraction |
marko/errors-simple | Simple error handler for production |
marko/config | Configuration management with scoped values |
marko/hashing | Password hashing and verification |
marko/validation | Data validation with attribute-based rules |
Optional Packages
Section titled “Optional Packages”Install these packages as needed for your application:
Database
Section titled “Database”composer require marko/database marko/database-mysql# orcomposer require marko/database marko/database-pgsql| Package | Description |
|---|---|
marko/database | Database abstraction layer |
marko/database-mysql | MySQL database driver |
marko/database-pgsql | PostgreSQL database driver |
composer require marko/cache marko/cache-file| Package | Description |
|---|---|
marko/cache | Cache abstraction layer |
marko/cache-file | File-based cache driver |
Session
Section titled “Session”composer require marko/session marko/session-file| Package | Description |
|---|---|
marko/session | Session abstraction layer |
marko/session-file | File-based session driver |
Authentication
Section titled “Authentication”composer require marko/authentication| Package | Description |
|---|---|
marko/authentication | Authentication abstraction layer |
Logging
Section titled “Logging”composer require marko/log marko/log-file| Package | Description |
|---|---|
marko/log | Logging abstraction layer |
marko/log-file | File-based logging driver |
Filesystem
Section titled “Filesystem”composer require marko/filesystem marko/filesystem-local| Package | Description |
|---|---|
marko/filesystem | Filesystem abstraction layer |
marko/filesystem-local | Local filesystem driver |
Advanced Error Handling
Section titled “Advanced Error Handling”composer require marko/errors-advanced| Package | Description |
|---|---|
marko/errors-advanced | Advanced error handling with detailed debugging |
Installation Examples
Section titled “Installation Examples”Full Web Application
Section titled “Full Web Application”For a complete web application with database, caching, sessions, and authentication:
composer require marko/framework \ marko/database marko/database-pgsql \ marko/cache marko/cache-file \ marko/session marko/session-file \ marko/authentication \ marko/log marko/log-fileMinimal API
Section titled “Minimal API”For a lightweight API without sessions or views:
composer require marko/framework \ marko/database marko/database-mysql \ marko/cache marko/cache-fileHeadless/CLI Application
Section titled “Headless/CLI Application”For command-line tools or background workers:
composer require marko/framework \ marko/database marko/database-pgsql \ marko/log marko/log-file \ marko/filesystem marko/filesystem-localRequirements
Section titled “Requirements”- PHP 8.5 or higher