Download the PHP package blax-software/laravel-workkit without Composer

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

Blax Software OSS

Laravel Workkit

PHP Version Laravel

A Laravel collection of helpers and utilities to reduce redundant code over multiple projects.

Features

Quick Start

Backups are encrypted with a key derived from your app's APP_KEY; a backup is restorable only by a deployment that knows the same APP_KEY.

Database Backups

A streaming, compressed, encrypted MySQL backup/restore suite. The dump, compression and encryption happen in a single shell pipe, so PHP never holds the database content in memory regardless of dump size.

Commands

Command What it does
workkit:db:backup Stream mysqldump โ†’ xz โ†’ openssl into storage/backups, write a .meta.json sidecar (size, sha256, params).
workkit:db:restore Stream openssl โ†’ xz โ†’ mysql. Verifies the source first; --fresh wipes the target after a verified safety snapshot.
workkit:db:verify Prove a backup decrypts and is a complete xz stream โ€” no database touched.
workkit:db:prune-backups Delete backups older than the retention window, always keeping the N newest.

Backup

Restore

--fresh is deliberately careful, because dropping every table is irreversible:

  1. The source backup is verified before anything is touched โ€” a file that can't be decrypted never triggers a wipe.
  2. A pre-restore safety snapshot of the current database is taken and verified (skip with --no-safety-backup; the restore aborts if the snapshot can't be written, rather than wiping with no recovery point).
  3. Only then are all tables + views dropped โ€” via the same mysql client and database the import uses, so the wipe and the import provably hit the same server (a url DSN / unix_socket / read-write split can't make them diverge).
  4. If the import fails after the wipe, the command prints the exact workkit:db:restore --file=<snapshot> command to recover.

Interactively, --fresh asks you to type the database name to confirm; under --force it proceeds non-interactively for deploy scripts.

Why --fresh and not just FK checks? A leftover table with an incompatible column type makes MySQL raise errno 150 / error 3780 at CREATE TABLE even with FOREIGN_KEY_CHECKS=0 (which restores already set). The only fix is an empty target. If a restore fails this way, the command tells you to re-run with --fresh.

Verify

Verify proves integrity (decrypts with this host's APP_KEY + a complete, non-truncated xz stream), flags a missing mysqldump completion marker (source-truncation), and compares the on-disk sha256 against the .meta.json sidecar. It does not prove restorability โ€” a valid backup of the wrong or empty database still verifies "OK".

Prune

The --keep-min floor (default 5) is always kept regardless of age, so an aggressive --days can never leave you with zero backups. Schedule it:

Configuration

Key Env Default Purpose
backup.path WORKKIT_BACKUP_PATH storage/backups Where backups live
backup.retention_days WORKKIT_BACKUP_RETENTION_DAYS 30 Age cutoff for prune
backup.retention_min_keep WORKKIT_BACKUP_RETENTION_MIN_KEEP 5 Newest backups always kept
backup.xz_level WORKKIT_BACKUP_XZ_LEVEL 3 xz compression level (0โ€“9)

Requirements

The host needs mysqldump, mysql, xz, openssl and bash on PATH โ€” standard on any reasonable Linux server. A non-empty APP_KEY is required (backups are unrecoverable without the key that produced them).

Restoring without the package

The output is plain openssl enc -salt format, so any host with the same APP_KEY can restore it directly:

Ops & Observability

Stats overview

Model row counts are estimated from information_schema on MySQL (instant); pass --exact for a real COUNT(*). Models are auto-discovered from app/Models โ€” override with config('workkit.stats.models') (an explicit FQCN list) or models_path. Table/DB sizes are MySQL-only and degrade to "n/a" elsewhere.

Queue health

For the database queue driver it reports per-queue pending / due / delayed / reserved counts and the oldest due job's age, plus failed jobs (total + last N hours). It flags a queue STALLED โ€” due work older than max_age_minutes with nothing reserved (the worker is probably down) โ€” and exits non-zero on any breach so it slots straight into cron or a health probe. Thresholds live under config('workkit.queue.*'), with per-queue depth overrides for intentionally-slow queues. Schedule it:

Changelog

See CHANGELOG.md.

Star History

Star History Chart


All versions of laravel-workkit with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
laravel/framework Version *
laravel/sanctum Version *
spatie/once Version *
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 blax-software/laravel-workkit contains the following files

Loading the files please wait ...