ewebovky / status-bundle
Generátor a endpoint pro status.json v Symfony pro Ewebovky.
Package info
github.com/Ewebovky/status-bundle
Type:symfony-bundle
pkg:composer/ewebovky/status-bundle
1.0.3
2026-02-18 16:43 UTC
Requires
- php: ^8.1
- symfony/framework-bundle: ^6.4 || ^7.0
Suggests
- doctrine/persistence: Pro zobrazení informací o DB verzi.
This package is auto-updated.
Last update: 2026-02-18 16:44:24 UTC
README
Lehký Symfony bundle, který poskytuje endpoint /status.json chráněný tokenem a vrací systémové informace (verze PHP, Symfony, DB aj.)
Instalace
composer config --json extra.symfony.endpoint '["flex://defaults","https://raw.githubusercontent.com/Ewebovky/recipes/main/index.json"]' composer config extra.symfony.allow-contrib true composer clear-cache composer require ewebovky/status-bundle:^1.0
Poté (pokud není auto-registrace) do config/bundles.php:
return [ Ewebovky\StatusBundle\EwebovkyStatusBundle::class => ['all' => true], ];
Konfigurace
Do .env zadejte token:
SITE_STATUS_TOKEN=xxxxxxx
A vytvořte config/packages/ewebovky_status.yaml:
ewebovky_status: token: '%env(string:SITE_STATUS_TOKEN)%'
Volání endpointu
GET /status.json
Authorization: Bearer xxxxxxx
– nebo –
GET /status.json
X-Status-Token: xxxxxxx
– nebo –
GET /status.json?token=xxxxxxx