Installation
Folio requires PHP 8.3 or later and Composer. It has no runtime dependencies beyond PHP itself.
Install via Composer
bash
composer require mohammadraufzahed/folioInstall a specific release:
bash
composer require mohammadraufzahed/folio:^1.0Composer pulls the package from Packagist. Source archives and release notes are also available on GitHub Releases.
See the release process for how versions are tagged and published.
Requirements
- PHP >= 8.3
mbstringextension recommended for proper text metrics- Composer 2.x
No additional extensions, libraries, or binaries are required.
Development Dependencies
When contributing or running the test suite, install dev dependencies:
bash
composer installThen verify the installation:
bash
composer test # PHPUnit
composer analyze # PHPStan
composer cs-check # PHP-CS-Fixer dry runOptional Tooling
For the best editing experience, install the companion tools:
- VS Code Extension — syntax highlighting, formatting, and LSP support
- Formatter — standalone CLI formatter for
.foliofiles - Language Server — autocomplete, diagnostics, and hover information