Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Sonata Laravel Package

ekino/sonata

View on GitHub
Deep Wiki
Context7

Provide an interface for Liip Monitor

liip-monitor.png

Configuration

Add the following configuration to your sonata_admin.yaml under the blocks section.

blocks:
    - position: top
      class: col-md-12
      type: 'Sonata\HelpersBundle\Block\Dashboard\MonitorBlockService'

Add also the new block into sonata_block.yaml under the blocks section:

blocks:
    # App Dashboard Blocks;
    'Sonata\HelpersBundle\Block\Dashboard\MonitorBlockService':
        contexts: [admin]

Your services.yaml file should look like:

services:
    # default configuration
    _defaults:
        ...
        bind:
            ...
            $liipMonitorDefaultGroup: '%liip_monitor.default_group%'

    # Sonata Liip Monitor Block
    'Sonata\HelpersBundle\Block\Dashboard\MonitorBlockService':
        arguments:
            $name: 'System Health Status'
            $pathHelper: '[@liip_monitor](https://github.com/liip_monitor).helper'

You will have to add some resources to your webpack config:

First define the path to ekino vendor bundle, for example:

const ekinoPrefix = path.resolve(__dirname,'./vendor/ekino/');

Then, use it to add the needed style and javascript:

const Encore = require('[@symfony](https://github.com/symfony)/webpack-encore');

...

Encore
    .setOutputPath('public/assets/admin')
    .setPublicPath('/assets/admin')
    .addStyleEntry('sonata-styles', [
        ...
        path.resolve(ekinoPrefix, 'sonata/src/Resources/public/css/liipMonitor.scss'),
    ])
    .addEntry('admin', [
        ...
        path.resolve(ekinoPrefix, 'sonata/src/Resources/public/js/HealthCheck.js'),
    ])
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
emuniq/filament-browser-notifications
syriable/filament-translator
hungnm28/livewire-form
wenprise/eloquent
crudly/encrypted
fadion/bouncy
cuci/prototurk-sdk
gos/pubsub-router-bundle
cuci/prototurk-sdk-symfony
clementtalleu/easyadmin-markdown-bundle
codeflextech/permission-manager
karnoweb/livewire-datepicker
sayedenam/sayed-dashboard
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui