phpacker / phpacker
Package a PHP script as a standalone cross-platform binary. Convenience wrapper around static-php & phpmicro using general-purpose php binaries
Fund package maintenance!
gwleuverink
Installs: 483
Dependents: 0
Suggesters: 0
Security: 0
Stars: 352
Watchers: 4
Forks: 4
Open Issues: 1
Requires
- laravel/prompts: ^0.3
- phpacker/composer-installer: ^0.3
- spatie/once: ^3
- symfony/console: ^7
- symfony/event-dispatcher: ^7
- symfony/filesystem: ^7
- symfony/finder: ^7
- vlucas/phpdotenv: ^5.6
Requires (Dev)
- cpx/cpx: ^1.0
- laravel/pint: ^1.20
- nunomaduro/collision: ^8.8
- pestphp/pest: ^3.8
- phpstan/phpstan: ^2.1
- symfony/process: ^7.3
This package is auto-updated.
Last update: 2025-06-15 22:04:00 UTC
README
PHPacker enables you to package any PHP script or PHAR into a standalone, cross-platform executable. It handles all the complexity of bundling PHP with your application, making distribution simple and hassle-free.
Documentation
You can read the official documentation on the PHPacker website.
Installation
You can install PHPacker globally via Composer:
composer global require phpacker/phpacker
Or as a project dependency:
composer require phpacker/phpacker --dev
Quick Start
Build a standalone executable from your PHP script with a single command:
phpacker build --src=./app.phar
Contributing
Contributions are welcome! Please see our Contributing Guide for details.
License
This project is licensed under the MIT License - see the LICENSE file for details.