PHP code example of yurizoom / moonshine-composer-viewer
1. Go to this page and download the library: Download yurizoom/moonshine-composer-viewer library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
yurizoom / moonshine-composer-viewer example snippets
[
'composer-viewer' => [
// Автоматическое добавление в меню
'auto_menu' => true,
// Указать расположение composer'а
'composer' => '/usr/local/bin/composer', // !! ВАЖНО !!
]
]
use YuriZoom\MoonShineComposerViewer\Pages\ComposerViewerPage;
protected function menu(): array
{
return [
...
MenuItem::make(
static fn () => __('Composer viewer'),
new ComposerViewerPage(),
),
...
];
}