Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/becklyn/hosting
A symfony bundle that configures several hosting-related things.
https://github.com/becklyn/hosting
php symfony symfony-bundle
Last synced: 4 days ago
JSON representation
A symfony bundle that configures several hosting-related things.
- Host: GitHub
- URL: https://github.com/becklyn/hosting
- Owner: Becklyn
- License: bsd-3-clause
- Created: 2018-12-13T16:03:36.000Z (almost 6 years ago)
- Default Branch: 3.x
- Last Pushed: 2023-01-13T12:23:19.000Z (almost 2 years ago)
- Last Synced: 2024-10-29T05:16:56.365Z (21 days ago)
- Topics: php, symfony, symfony-bundle
- Language: PHP
- Size: 184 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
Hosting Bundle
==============[![Coverage Status](https://coveralls.io/repos/github/Becklyn/Hosting/badge.svg?branch=3.x)](https://coveralls.io/github/Becklyn/Hosting?branch=3.x)
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 project
* `installation` (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 `` comment to all HTML responses. Use this for integration into uptime monitors.
* If you set a `trackjs` token, you can include the monitoring JS:
```twig
{% block javascripts %}
{{- hosting_embed_monitoring() -}}
{# .. your other JS imports #}
{% endblock %}
```Assets Bundle Integration
-------------------------This bundle registers a `@hosting` namespace in the becklyn assets bundle.