Files
ABSDEV/Modules/Marketplace/Console/Commands/MarketplaceAuditCommand.php
T
Mark Gregory f09a680531 Marketplace package catalogue
* Modules, themes, and extensions
* Publisher profiles and verification metadata
* Installed-package tracking
* Semantic version compatibility checks
* PHP, Laravel, and Content Manager compatibility checks
* Dependency resolution
* SHA-256 checksum validation
* Package signature requirements
* Installation and update history
* Enable and disable controls
* Removal handling
* Rollback records
* Licence records
* Marketplace administration UI
* Authenticated REST endpoints
* Console audit and synchronisation commands
* Permissions and sidebar integration
* Feature tests
2026-07-24 13:49:14 +01:00

15 lines
698 B
PHP

<?php
namespace Modules\Marketplace\Console\Commands;
use Illuminate\Console\Command;
use Modules\Marketplace\Models\InstalledPackage;
final class MarketplaceAuditCommand extends Command
{
protected $signature='marketplace:audit'; protected $description='Audit installed marketplace package state.';
public function handle(): int
{
$packages=InstalledPackage::query()->with('package')->get();
foreach ($packages as $package) $this->line(sprintf('%s %s [%s]%s',$package->package_name,$package->version,$package->status,$package->hasUpdate()?' update available':''));
$this->info($packages->count().' installed package(s) audited.'); return self::SUCCESS;
}
}