{"id":16768704,"url":"https://github.com/jackd248/systeminformationbundle","last_synced_at":"2025-04-15T22:54:07.976Z","repository":{"id":52233912,"uuid":"423760464","full_name":"jackd248/SystemInformationBundle","owner":"jackd248","description":"Sonata Admin bundle to display systemically relevant information","archived":false,"fork":false,"pushed_at":"2025-01-31T08:53:04.000Z","size":930,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-15T22:54:02.856Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jackd248.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-02T08:22:11.000Z","updated_at":"2021-11-30T09:52:51.000Z","dependencies_parsed_at":"2025-01-31T09:27:11.961Z","dependency_job_id":"5f462b4c-b804-41bb-aa5c-8c075535af60","html_url":"https://github.com/jackd248/SystemInformationBundle","commit_stats":{"total_commits":86,"total_committers":1,"mean_commits":86.0,"dds":0.0,"last_synced_commit":"108be4ee5d840aae6dfac056b987970f1a8a03a0"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackd248%2FSystemInformationBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackd248%2FSystemInformationBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackd248%2FSystemInformationBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jackd248%2FSystemInformationBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jackd248","download_url":"https://codeload.github.com/jackd248/SystemInformationBundle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249167439,"owners_count":21223505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-13T06:12:18.034Z","updated_at":"2025-04-15T22:54:07.957Z","avatar_url":"https://github.com/jackd248.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSystem Information Bundle\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"./docs/img/settings.svg\" alt=\"Settings\" width=\"150\"\u003e\u003c/p\u003e\n\nSimple Sonata Admin bundle to get a system information overview. \n\n![Screenshot](docs/img/screenshot-system-overview.png \"Screenshot\")\n\nThis bundle combines the functionalities of the following bundles and displays the aggregated information within the backend:\n\n- [LiipMonitorBundle](https://github.com/liip/LiipMonitorBundle)\n- [Symfony Requirements Checker](https://github.com/symfony/requirements-checker)\n\n## Install\n\nFollow the steps to enable the system information overview in the sonata backend.\n\n### Composer\n\nInstall bundle via composer\n```bash\n$ composer require kmi/system-information-bundle\n```\n\n### Routing\n\nAdd a routing entry in `config/routes/kmi_system_information.yaml`\n```yaml\nkmi_system_information:\n  resource: \"@SystemInformationBundle/Resources/config/routing.yaml\"\n```\n\nExtend the file with the routing definition of the LiipMonitorBundle\n```yaml\n_monitor:\n  resource: \"@LiipMonitorBundle/Resources/config/routing.xml\"\n  prefix: /monitor/health\n```\n\n### Templates\n\nAdd a twig entry in `config/packages/twig.yaml`\n```yaml\npaths:\n  '%kernel.project_dir%/vendor/kmi/system-information-bundle/src/Resources/views': SystemInformationBundle\n```\n\n### Sonata Admin Menu\n\nAdd optionally a sonata admin menu entry in `config/packages/sonata_admin.yaml` or use the system indicator twig extension (see below)\n```yaml\nsonata_admin:\n    dashboards:\n        groups:\n            app.admin.group.system:\n                label: 'System'\n                icon: '\u003ci class=\"fa fa-cogs\" aria-hidden=\"true\"\u003e\u003c/i\u003e'\n                roles: ['ROLE_SUPER_ADMIN']\n                on_top: true\n                items:\n                    - route: kmi_system_information_overview\n                      label: System\n```\n\n### Assets\n\nInstall the bundle assets\n```bash\n$ php bin/console assets:install\n$ php bin/console cache:clear\n```\n\n### Register checks\n\nConfigure [LiipMonitorBundle](https://github.com/liip/LiipMonitorBundle) in `config/packages/monitor.yaml`.\n\nSee an example in [monitor.yaml](docs/examples/monitor.yaml)\n\n### Ready\n\nAccess the system overview page `/admin/system`.\n\n## Twig Extensions\n\nThe bundle comes with several twig extensions\n\n### System Indicator\n\nThe system indicator twig extension gives you a short overview about the system status in the sonata header:\n\n![Screenshot](docs/img/screenshot-system-indicator.png \"Screenshot System Indicator\")\n\nExtend the Sonata Admin `standard_layout.html.twig` to enable the twig function in the backend header:\n\n```html\n{% block sonata_top_nav_menu %}\n    \u003cdiv class=\"navbar-custom-menu\"\u003e\n        \u003cul class=\"nav navbar-nav\"\u003e\n            \u003cli\u003e\n                {{ system_information_indicator()|raw }}\n            \u003c/li\u003e\n        \u003c/ul\u003e\n    \u003c/div\u003e\n{% endblock %}\n```\n\n### App Version\n\nDisplays the application version defined in the `composer.json` file:\n\n```html\n{{ version() }}\n```\n\n### Environment Indicator\n\nThe environment indicator gives you a fast indicator about the current environment:\n\n\n![Screenshot](docs/img/screenshot-environment.png \"Screenshot Environment\")\n\n\nExtend the Sonata Admin `standard_layout.html.twig` to enable the twig function in the backend header:\n\n```html\n{% extends '@!SonataAdmin/standard_layout.html.twig' %}\n{% block sonata_breadcrumb %}\n    \u003cul class=\"nav navbar-nav\" style=\"float:left\"\u003e\n        {{ environment()|raw }}\n    \u003c/ul\u003e\n    {{ parent() }}\n{% endblock %}\n```\n\nExtend the Sonata User `login.html.twig` to enable the twig function in the login screen:\n\n```html\n{% extends '@!SonataUser/Admin/Security/login.html.twig' %}\n\n{% block sonata_wrapper %}\n    {{ parent() }}\n    \u003cul style=\"position: absolute;top: 10px;left: 10px;\"\u003e\n        {{ environment()|raw }}\n    \u003c/ul\u003e\n{% endblock sonata_wrapper %}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackd248%2Fsysteminformationbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjackd248%2Fsysteminformationbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjackd248%2Fsysteminformationbundle/lists"}