Requirements
Before installing, confirm your environment meets the following minimum versions:Install via Composer
Run the appropriate Composer command for your use case:Install Geni as a standard dependency when you want to serve the interactive documentation portal in non-local environments such as staging or behind an authenticated intranet. Install it as a
--dev dependency when you only need it for CLI exports (geni:export) and CI drift detection (geni:check) — in that case, Geni never ships to your production image.Publish the configuration file
Publish Geni’s default configuration to your project:config/geni.php in your project. Open that file to customise:
- Route prefixes for the docs portal and JSON specification endpoints
- Documentation title and branding displayed in the portal
- Security schemes such as Bearer tokens or API keys
- Authentication for the portal itself (form-based login or HTTP Basic)
- Multi-version API definitions and the version-switcher dropdown
Next steps
Quickstart Guide
Browse your auto-generated documentation portal, export your first OpenAPI file, and set up CI drift detection.