Download the PHP package joshdonnell/radar without Composer

On this page you can find all versions of the php package joshdonnell/radar. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package radar

Laravel Radar

Laravel Compatibility Tests Formats License

Introduction

Laravel Radar is a lightweight dependency health dashboard and notifier for Laravel applications.

Radar scans Composer and NPM dependencies, stores a snapshot, and highlights:

Radar is intentionally read-only. It reports dependency health and suggests commands, but it does not update dependencies, edit lock files, commit changes, or deploy code for you.

Requirements

Installation

Install Radar with Composer:

Publish Radar's config file and migration:

Run the migration:

Usage

Run a dependency scan:

Open the dashboard at:

The dashboard path can be changed with:

Radar's dashboard is enabled outside production by default and disabled in production by default. Production applications can still run scans and send notifications. Only enable the dashboard in production when it is protected by trusted authentication and authorization.

Commands

Radar ships these Artisan commands:

radar:install

Publishes Radar's config file and migration. Run it once after installing the package.

Dashboard assets are served directly from the package, so there is nothing to publish or re-publish after upgrading.

radar:scan

Scans application dependencies and stores a Radar snapshot.

Scan a different project path:

Use CI mode in a pipeline after installing dependencies:

The --ci flag makes radar:scan return a failing status when vulnerabilities meet the configured severity threshold. Your CI provider does not need special handling. It only needs to run the command and respect the exit code.

Set --severity to low, medium, high, or critical. Radar returns these exit codes:

Exit code Meaning
0 No vulnerabilities at or above the threshold.
1 At least one vulnerability is at or above the threshold.
2 The CI options or scan path are invalid, or a dependency audit could not run.

An audit that could not run (for example because composer is missing, the network is down, or the command timed out) returns 2 rather than passing, because a clean result cannot be trusted in that case.

Incomplete scans

When a check cannot run, Radar records a warning on the scan instead of silently reporting zero findings. Warnings are printed by radar:scan, shown as a banner on the dashboard, and turn a CI run into exit code 2. Common causes:

radar:notify

Sends a notification for vulnerabilities in the latest stored scan that have not been notified about yet.

Run a fresh scan before notifying:

Notifications are only sent when vulnerabilities exist and at least one notification route is configured.

radar:clear

Clears stored Radar scan history.

Skip the confirmation prompt:

Dashboard

The dashboard shows the latest stored scan, including:

It follows your system's light or dark preference. Press / to jump to the package search.

Running scans from the dashboard

The Run Scan button queues a scan as a background job, because a scan can take longer than a web request is allowed to run. The dashboard polls until the job finishes, and reports an error if it fails.

This needs a queue worker:

If the scan stays queued for more than two minutes, the dashboard reminds you to check that a worker is running. With the sync queue driver the scan runs during the request instead.

Choose a specific connection or queue with:

Only one dashboard scan can be queued at a time, and the endpoint is rate limited to 10 requests per minute.

Notifications

Radar uses Laravel Notifications. Your application still owns the normal mail and Slack transport configuration; Radar only stores the on-demand notification routes it should target.

Configure mail recipients:

Configure Slack:

Send notifications manually:

Or scan first, then notify:

Each vulnerability is announced once. Later runs only notify about vulnerabilities that are new since the last notification, so an unresolved finding does not send an email every night, and resolving one vulnerability does not re-send the others. A vulnerability that is resolved and later comes back is announced again.

Only notify about findings at or above a severity (low, medium, high, or critical):

Findings with an unknown severity are included only when the minimum is low.

To be reminded about vulnerabilities that are still unresolved, set a reminder interval in seconds. Reminders are off by default.

Radar remembers which vulnerabilities it has notified about in your application's cache, so use a persistent cache store in production.

Scheduling

Radar preconfigures a nightly scheduled radar:notify --scan run at 02:00, so each notification run starts with a fresh scan. The scheduled run uses onOneServer(), so it only runs once when your application is deployed to several servers (this needs a cache store that supports atomic locks).

Your application still needs Laravel's scheduler running in production, usually via a cron entry that runs php artisan schedule:run every minute.

Customize or disable Radar's built-in schedule:

Authorization

Radar checks the configured gate outside local environments before serving the dashboard.

Define the gate in your application, for example:

If you publish the config, you can change the gate name by editing the authorization.gate value in config/radar.php.

Configuration

Publish the configuration file with:

Useful environment variables:

Every option is documented in the published config/radar.php file.

Dependency sources

Radar reads dependency information from package manager files and installed package metadata. The audit and outdated commands run in parallel to keep scans fast.

Composer support includes:

NPM support includes:

The full Node package tree (including transitive packages) is read from package-lock.json. Yarn, pnpm, and Bun projects only list their direct dependencies, and the scan records a warning saying so. Vulnerabilities in transitive packages are still reported when the runner's audit command can find them.

Supported Node runners

Radar detects the JavaScript package manager from the project lock file and uses that runner when suggesting safe NPM update commands.

Lock file Runner Example recommendation
package-lock.json npm npm update vite
npm-shrinkwrap.json npm npm update vite
yarn.lock Yarn yarn up vite
pnpm-lock.yaml pnpm pnpm update vite
bun.lock Bun bun update vite
bun.lockb Bun bun update vite

If no known lock file exists, Radar falls back to npm.

Not every runner supports every check:

Runner Vulnerability audit Outdated check Fix for transitive vulnerabilities
npm npm audit --json npm outdated --json npm audit fix
Yarn yarn audit --json Not supported yarn up -R <package>
pnpm pnpm audit --json pnpm outdated --json Update the parent package
Bun Not supported Not supported Update the parent package

Unsupported checks are recorded as scan warnings rather than reported as clean.

Upgrading from 0.1

Testing

Run the PHP checks:

Run frontend checks while working on dashboard assets:

Releasing

Releases are created by the release workflow, so there is no need to build assets or tag locally. Run it from the Actions tab, or with:

The workflow builds the dashboard assets, commits resources/dist to main if it changed, then tags that commit and publishes a GitHub release with generated notes.

License

Laravel Radar is open-sourced software licensed under the MIT license.


All versions of radar with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/contracts Version ^12.0||^13.0
illuminate/database Version ^12.0||^13.0
laravel/slack-notification-channel Version ^3.0
spatie/laravel-package-tools Version ^1.16
symfony/process Version ^7.0||^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package joshdonnell/radar contains the following files

Loading the files please wait ...