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

Phar Composer Laravel Package

clue/phar-composer

phar-composer turns any Composer-managed PHP project into a single executable phar, automatically bundling dependencies and the vendor directory with zero extra configuration. Build from a project path or search Packagist packages interactively—ideal for distributing CLI tools.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Distribution strategy for PHP CLI tools: Choose between single-file PHAR, Composer global install, Docker images, or native packages. This package enables zero-config PHAR creation from any Composer-managed project, reducing end-user setup friction.
  • Build vs buy for packaging pipelines: Avoid building custom PHAR bundling logic. Use this tool to bundle dependencies into one executable, especially for internal tools, Laravel Zero applications, or standalone artisan commands.
  • Onboarding and support reduction: Ship a single executable that works without Composer or dependency management, lowering support burden for CLI utilities distributed to developers or customers.
  • CI/CD artifact generation: Produce self-contained PHARs as build artifacts for release pipelines, enabling versioned, reproducible CLI distributions.
  • Roadmap considerations: If you need legacy PHP (5.3+) or Windows support (except install subcommand), this tool covers those cases with minimal effort. Useful for tools that must run in heterogeneous environments.
  • Use cases: Distributing Laravel Zero apps, internal artisan commands as standalone binaries, packaging PHPUnit or other dev tools, shipping CLI utilities to users with minimal PHP knowledge.

When to Consider This Package

  • You have a Composer-managed PHP CLI application and want a zero-configuration way to build a single executable PHAR that includes all dependencies.
  • You need to distribute a CLI tool to users who should not install Composer or manage dependencies.
  • You require support for legacy PHP versions (5.3+) or Windows (with the caveat that install is not available on Windows).
  • You are comfortable with a mature but not actively maintained tool (last release February 2022) and can pin the version for stability.
  • When to look elsewhere: If you need active maintenance, modern PHAR features (compression, signing), or advanced customization. If your application relies on native extensions, non-PHP assets that do not bundle well, or you are building a Laravel web application (not a CLI tool). For more actively maintained alternatives, consider Box or custom build scripts.

How to Pitch It (Stakeholders)

  • Executives: This tool reduces support overhead and simplifies distribution for CLI tools, improving developer and customer experience. It is MIT-licensed, widely used (862 stars), and low-risk to adopt. It can accelerate time-to-market for internal or customer-facing CLI utilities by eliminating complex installation steps.
  • Engineering: Easy to integrate with existing Composer projects—no configuration required. It produces a single executable PHAR with bundled dependencies, works across PHP 5.3–8+, and supports local paths, Packagist packages, and git URLs. Note the last release was in 2022; recommend pinning the version and testing on target PHP versions. Ideal for Laravel Zero apps, internal artisan commands, and standalone CLI tools. For projects needing active maintenance or advanced PHAR features, evaluate alternatives like Box.
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.
labyrinthe/connect-php
encore2/laravel-admin2
cboxdk/laravel-console-kit
shapecode/doctrine-dbal-datetimeutc
gilads-otiannoh254/inertia-protocol
dakiquang/laravel-oauth-refresh-lock
woda/laravel-worktrees
dalefranks/ramasite
faghy/laracashbook
roundly-consulting/google-places-for-laravel
roundly-consulting/kubernetes-api-for-laravel
roundly-consulting/plausible-for-laravel
gvp/gvp-laravel-template
metasyncsite/laravel-metasync-client
roundly-consulting/onboarding-for-laravel
adachsoft/cli-process-tester
adachsoft/changelog-linter
adachsoft/collection
adachsoft/php-code-style
adachsoft/api-version-bundle