subarist / waterhole-user-card
Compact hover user cards for Waterhole
Package info
github.com/efast1568/waterhole-user-card
Type:waterhole-extension
pkg:composer/subarist/waterhole-user-card
Requires
- waterhole/core: ^0.7.0 || ^0.8.0
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
README
A compact hover user card extension for Waterhole.
Preview
Features
- Compact user cards on name hover.
- Lightweight JSON endpoint.
- Avatar, name, headline, biography, groups and profile information.
- Optional Waterhole User Cover integration.
- Desktop hover and touch-device tap interactions.
- Response caching and stale-request protection.
Requirements
- Waterhole
^0.7.0 || ^0.8.0 - PHP version supported by your installed Waterhole version.
Installation
After this package has been published and is available through Composer:
composer require subarist/waterhole-user-card
Then enable User Card in the Waterhole extension manager.
Optional User Cover Integration
User Card can display a cover image when Waterhole User Cover is installed and its database migration has been run.
User Cover is optional and is not a Composer dependency.
API
GET /users/{user}/card
Returns JSON data used by the frontend user card.
Response fields include:
nameheadlinebioavatarcolorcovergroupsinfo
The endpoint uses private, non-cacheable response headers.
Private group information is only included when the viewer has the required permission.
License
MIT. See LICENSE.
