becklyn / hosting
A symfony bundle that configures several hosting-related things.
Installs: 9 860
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=7.1
- ext-json: *
- sentry/sentry-symfony: ^4.2
- symfony/cache: ^4.4 || ^5.0
- symfony/config: ^4.4 || ^5.0
- symfony/dependency-injection: ^4.4 || ^5.0
- symfony/http-kernel: ^4.4 || ^5.0
Requires (Dev)
- becklyn/assets-bundle: dev-legacy_support
- becklyn/php-cs: ^2.0.1 || >=18
- symfony/phpunit-bridge: ^4.3.8
- twig/twig: ^2.0
Suggests
- becklyn/assets-bundle: For embedding the frontend monitoring using Becklyn's asset() twig function.
- symfony/assets: For embedding the frontend monitoring using Symfony's asset() twig function.
This package is auto-updated.
Last update: 2024-12-13 16:40:38 UTC
README
Eases the integration with several hosting-related topics.
Config
tier
(required): the tier the app is currently deployed to. Normally something like"production"
,"staging"
or"development"
.project
(required): the clear text name of the projectinstallation
(required): the key of this installation (used for tokens and uptime monitoring)- Should be unique per installation.
- Should be a technical key (only
a-z 0-9 -_
).
trackjs
: the token for the integration with TrackJS.
Getting the Hosting Config
Just fetch the Becklyn\Hosting\Config\HostingConfig
service and you have access to the hosting configuration.
Features
-
The bundle automatically adds a
<!-- uptime monitor: $project_name -->
comment to all HTML responses. Use this for integration into uptime monitors. -
If you set a
trackjs
token, you can include the monitoring JS:{% block javascripts %} {{- hosting_embed_monitoring() -}} {# .. your other JS imports #} {% endblock %}
Assets Bundle Integration
This bundle registers a @hosting
namespace in the becklyn assets bundle.