Download the PHP package ashraftalha/laravel-opconsole without Composer

On this page you can find all versions of the php package ashraftalha/laravel-opconsole. 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 laravel-opconsole

Monitor. Diagnose. Maintain.
An operations console for Laravel: health checks, safe Artisan operations, a security audit and a log viewer, all behind Gates.

Latest Version Total Downloads Tests Laravel 12.x | 13.x Documentation website

๐Ÿ“– Full documentation: https://opconsole.ashraftalha.com/

OpConsole adds one page to your app, /admin/opconsole by default. It answers "is anything wrong?" at a glance, shows the fix for every problem, and lets the right people run maintenance tasks without SSH. It ships its own CSS and JavaScript, needs no build step, and makes no CDN requests.

Start here: 5-minute setup ยท Read-only production ยท 401/403 troubleshooting

No SSH? Check shared-hosting limitations: installation and migrations still need deployment access, and timed browser actions need web-runtime pcntl.

Contents

What's inside

The console is organised in eight tabs. A header above them shows a 0โ€“100 health score, the environment badge, and the Laravel and PHP versions.

Tab What you get
Overview Overall state with a status bar, summary cards (database, health, log errors, cache, queue, scheduler, disk, security), the issues that need attention with copyable fix commands, runtime status, and recent activity.
Health Every check grouped by area, critical issues first. Filter by status chips or by name, and expand any check to see its current value and fix. Filters stay in the URL (?check_status=), so a shared link opens the same view.
Security Vulnerable Composer packages by severity, a scan-freshness meter, each advisory with a ready-to-copy composer update command, and Laravel configuration warnings.
Operations Maintenance tasks split into a Safe group and a Danger zone. The output of the last run appears first.
Failed jobs The newest failed queue jobs with their queue, failure time and error (never the payload), a filter, and a Retry button per job.
History An audit trail grouped by day: who ran what, when, how long it took, and any error.
System Application, PHP, performance (OPcache, JIT, Xdebug), PHP extensions, server, database, service and cache settings, with production-risk flags, copy buttons, a search box, and "Copy summary for support".
Logs Log file list, an entries-per-hour chart, level and environment filters, search with highlighting, repeat counts, stack traces with your app's frames highlighted, download and delete.

Screenshots


Health: filter by status, expand any check for its fix

Operations: safe tasks, a danger zone, and run one migration or all

Security: advisories by severity, scan freshness

Logs: hourly chart, filters, repeat counts

History: audit trail grouped by day

Failed jobs: errors at a glance, retry one job

Screenshots use sample data.

Also included:

Requirements

Quick start

1. Install the package

2. Publish the config (optional, but recommended)

3. Create the audit table

4. Open the console

Sign in to your app, then go to https://your-app.test/admin/opconsole.

With APP_ENV=local it works right away. In every other environment, access is denied until you define the Gates below.

5. Allow access in production

Start with a trusted read-only operator. Import Gate at the top of app/Providers/AppServiceProvider.php, then define the Gates inside boot():

This permits dashboard and log-tail access but denies commands, job retries, full log downloads, and log deletion with the default configuration. Keep authorization.action_gates empty for this read-only policy: a mapped Gate for a normal Artisan action can grant execution even when the run Gate denies it. Failed-job retries additionally require the run Gate; see the permission matrix. Log tails may contain sensitive data, so viewing still requires a trusted operator.

When administrators need to execute actions, replace those definitions with a separate operator/admin policy:

The operator remains read-only; the administrator can run enabled actions (including migrations and job retries) and download logs. Log deletion stays disabled until explicitly granted. For an existing role or permission system, use equivalent permission checks instead of email addresses.

6. Start the scheduler and a queue worker (for the heartbeat checks)

That's it.

Need finer permissions? Map individual operations to their own Gates (for example, support staff can clear caches while migrations stay with administrators). See Authentication & Authorization.

Learn more

๐Ÿ“– The full documentation lives at opconsole.ashraftalha.com.

Topic What it covers
Authentication & Authorization The four Gates, the fail-closed default, per-operation Gates, read-only users
Operations Every allow-listed operation, its risk, and the safety rules (confirmation, press-and-hold, locks, runtime limits, audit). Run all pending migrations or one at a time
Failed jobs & retry The failed-jobs tab and per-job retry
Health checks & alerts Built-in checks, the health score, and alerts when health changes
CLI and JSON health endpoint opconsole:health for CI and the token-protected endpoint for uptime monitors
Security audit Composer advisory scanning, opconsole:security, stale-result handling
Laravel Octane & Swoole Octane health checks, Reload Octane workers, why timed operations are refused inside Swoole workers
Custom health checks Write your own check with the HealthCheck contract
Configuration and environment variables Every option, including themes, your own Blade layout and a back link
Production deployment Caching, lock stores on multiple servers, the audit policy
Security model How access, CSRF, the command allow-list and output sanitising work
Troubleshooting and FAQ Common problems and questions

Updating

Composer never changes files you published. If you published any of them earlier:

See the upgrade guide for version-specific steps.

Testing

Contributing

See CONTRIBUTING.md.

License

MIT. See LICENSE.


All versions of laravel-opconsole with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
laravel/framework Version ^12.0|^13.0
symfony/process Version ^7.2|^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 ashraftalha/laravel-opconsole contains the following files

Loading the files please wait ...