Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Box Laravel Package

kherge/box

Box is a PHP tool for building PHAR archives, letting you package PHP applications and libraries into a single executable file. It provides configuration-driven builds, file compaction, and reproducible output for easy distribution.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: kherge/box is a standalone PHP CLI application for building PHAR archives, not a Laravel package or runtime library. It fits as a build-time tool in CI for packaging CLI entrypoints, Artisan commands, queue workers, scheduled jobs, or internal tools. It does not fit a standard Laravel web application because Laravel expects writable storage, public assets, environment files, and framework path conventions that PHAR packaging complicates.
  • Integration feasibility: Feasible as an isolated CI/build step if the target is a small PHP CLI artifact. Integration is weak for full Laravel deployments because Box must resolve Composer autoloading, Laravel bootstrap paths, config caching, migrations, storage, and asset publishing outside the PHAR.
  • Technical risk: High. The package is archived, last released in 2016, and likely has compatibility issues with modern PHP, Composer, OpenSSL/PHAR signing behavior, and PHP 8+ runtime assumptions. Security and dependency patches should be assumed unavailable. The high star count is historical signal, not current maintenance evidence.
  • Opportunity score: The 7.97 opportunity score suggests useful build-tooling value, but the archived status makes adoption a tactical legacy decision rather than a strategic platform choice.
  • Key questions: Is the target a CLI/Artisan/worker artifact or a full Laravel web app? Which PHP versions must be supported? Does the deployment require signed PHARs? Can the team use the maintained HumBug Box fork instead? What is the rollback path if PHAR path resolution or extension loading fails? Who owns security review for an unmaintained build dependency?

Integration Approach

  • Stack fit: Best fit is PHP 5.x/7.x-era Laravel or plain PHP CLI tooling running in a controlled CI image. Poor fit for modern Laravel web deployments, Octane, queue workers with heavy filesystem assumptions, or applications requiring dynamic asset publishing.
  • Migration path: Treat Box as an experiment, not a default. Pilot it on one non-critical Artisan command or internal CLI tool, produce a PHAR in CI, run it against the target PHP runtime, and compare behavior with the existing Composer-based deployment. If successful, keep Box pinned and isolated. For new work, migrate to humbug/box or use conventional Composer/container artifacts.
  • Compatibility: Validate Box itself runs on the CI PHP version separately from the target runtime PHP version. Check PHAR signing, phar.readonly, OpenSSL, Composer autoload generation, Laravel path helpers, config/env loading, storage writes, and native extension assumptions. Do not assume PHP 8 compatibility without a proof of concept.
  • Sequencing: First inventory entrypoints and runtime dependencies; second choose a single CLI pilot; third create a minimal box.json; fourth build and sign in CI; fifth run smoke tests in a staging-like runtime; sixth document rollback and artifact provenance; finally decide whether to standardize, replace with HumBug Box, or stop.
  • Laravel-specific guidance: Do not PHAR-package the whole web application. Use Box only for bounded CLI surfaces, or exclude Laravel from the PHAR and package only application-specific command code with the framework installed conventionally.

Operational Impact

  • Maintenance: Effectively frozen. The team must own all upgrades, compatibility shims, and security triage. Pin the exact version and avoid floating dependencies. Budget for eventual replacement rather than long-term support.
  • Support: Community support only, with no upstream fixes. Internal documentation and a named owner are mandatory. If the build tool becomes release-critical, the lack of maintenance becomes an operational risk.
  • Scaling: As a build-time tool, scaling is mostly CI concurrency and artifact storage. Runtime scaling depends on the PHAR entrypoint, not Box. PHAR startup and opcache behavior should be measured for high-frequency CLI workloads.
  • Failure modes: Common failures include PHP version incompatibility, missing extensions, Composer autoload/path resolution errors, Laravel bootstrap and env-loading failures, unwritable storage/log paths, PHAR signature/OpenSSL issues, and phar.readonly misconfiguration in CI. These failures often appear late in deployment.
  • Ramp-up: Low for engineers familiar with PHP CLI packaging and CI; medium for Laravel teams because framework path and filesystem assumptions must be tested. Allocate a short spike and a rollback plan before committing.
  • TPM recommendation: Leverage kherge/box only as a pinned, isolated, build-time pilot for legacy PHP CLI artifacts. Do not adopt it as a strategic Laravel packaging solution; prefer the maintained HumBug Box fork or conventional container/Composer deployment for new work.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
ignibyte/aic-framework
glavweb/data-schema-bundle
glavweb/datagrid-bundle
tacticmedia/scim-server
uni-method/frame
neika-ai/sdk
adachsoft/php-code-style
pharaonic/laravel-notification-dependencies
beautinow/translug
dev-brainiac/bot-cloaked
octoberrain/html
octoberrain/extension
octoberrain/exception
octoberrain/contracts
adachsoft/api-version-bundle
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox