Download the PHP package fastcomments/laravel without Composer
On this page you can find all versions of the php package fastcomments/laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fastcomments/laravel
More information about fastcomments/laravel
Files in fastcomments/laravel
Package laravel
Short Description Laravel integration for FastComments — Blade components, SSO, and API access
License MIT
Homepage https://fastcomments.com
Informations about the package laravel
FastComments for Laravel
A Laravel package that wraps the FastComments PHP SDK and SSO library, providing Blade components, SSO integration, and full API access.
AI coding agents
Give your coding agent the FastComments context it needs - widgets, configuration, Secure SSO, the REST API, and the SDKs:
Works with Claude Code, Codex, Cursor, Copilot, Gemini, and every other agent the skills CLI supports.
Requirements
- PHP 8.1+
- Laravel 10, 11, or 12
Installation
Publish the configuration file:
Add your credentials to .env:
For EU region:
Blade Components
Comment Widget
Live Chat
Comment Count
SSO
Enable SSO in your .env:
The API key is required for secure SSO — it is used to sign the SSO payload.
Config-Based Mapping
In config/fastcomments.php, map FastComments fields to your User model attributes:
Interface-Based Mapping
For more control, implement the MapsToFastCommentsUser interface on your User model:
When the interface is implemented, it takes precedence over config-based mapping.
SSO in Blade
When SSO is enabled, the <x-fastcomments /> component automatically injects SSO data for the authenticated user.
API Access
Via Facade
Via Dependency Injection
Direct SDK Access
Configuration Reference
| Key | Env Variable | Default | Description |
|---|---|---|---|
tenant_id |
FASTCOMMENTS_TENANT_ID |
'' |
Your FastComments tenant ID |
api_key |
FASTCOMMENTS_API_KEY |
'' |
API key for server-side calls |
region |
FASTCOMMENTS_REGION |
null |
null (US) or 'eu' |
sso.enabled |
FASTCOMMENTS_SSO_ENABLED |
false |
Enable SSO |
sso.mode |
FASTCOMMENTS_SSO_MODE |
'secure' |
'secure' or 'simple' |
sso.login_url |
FASTCOMMENTS_SSO_LOGIN_URL |
null |
Login URL (falls back to Laravel route) |
sso.logout_url |
FASTCOMMENTS_SSO_LOGOUT_URL |
null |
Logout URL (falls back to Laravel route) |
widget_defaults |
— | [] |
Default widget config options |
Customizing Views
To customize the Blade template:
Templates will be published to resources/views/vendor/fastcomments/.
License
MIT
All versions of laravel with dependencies
illuminate/support Version ^10.0|^11.0|^12.0
illuminate/view Version ^10.0|^11.0|^12.0
illuminate/contracts Version ^10.0|^11.0|^12.0
fastcomments/fastcomments-php Version ^3.0
fastcomments/sso Version *