[
  {
    "path": ".editorconfig",
    "content": "root = true\n\n[*]\ncharset = utf-8\nend_of_line = lf\ninsert_final_newline = true\nindent_style = space\nindent_size = 4\ntrim_trailing_whitespace = true\n\n[*.md]\ntrim_trailing_whitespace = false\n\n[*.yml]\nindent_style = space\nindent_size = 2\n"
  },
  {
    "path": ".gitattributes",
    "content": "* text=auto eol=lf\n/.github export-ignore\n.scrutinizer.yml export-ignore\nBACKERS.md export-ignore\nCONTRIBUTING.md export-ignore\nCHANGELOG.md export-ignore\n"
  },
  {
    "path": ".gitignore",
    "content": "/vendor\n/.idea\n/.vscode\n/.vagrant\n.phpunit.result.cache\nmacos_intel\nmacos_apple\nlinux_x86_64\nlinux_aarch64\nwindows_x64\n"
  },
  {
    "path": "LICENSE",
    "content": "MIT License\n\nCopyright (c) 2023 Joe Campo\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n"
  },
  {
    "path": "README.md",
    "content": "<p align=\"center\">\n<a href=\"https://packagist.org/packages/configured/haulable\"><img src=\"https://img.shields.io/packagist/dt/configured/haulable\" alt=\"Total Downloads\"></a>\n<a href=\"https://packagist.org/packages/configured/haulable\"><img src=\"https://img.shields.io/packagist/v/configured/haulable\" alt=\"Latest Stable Version\"></a>\n<a href=\"https://packagist.org/packages/configured/haulable\"><img src=\"https://img.shields.io/packagist/l/configured/haulable\" alt=\"License\"></a>\n</p>\n\n\n![image](https://user-images.githubusercontent.com/3619398/228083152-5758103f-c27b-4d53-a1d5-c3287ee05949.png)\n\n\nHaulable is a CLI tool that packages your existing PHP CLI Phar with [PHP Micro CLI](https://github.com/dixyes/phpmicro) for MacOS (Apple/Intel), Linux, and Windows. This enables your existing PHP CLI app built with something like [Laravel Zero](https://github.com/laravel-zero/laravel-zero) to be truly portable as the end user will no longer need PHP to be installed to run your application.\n\n\n### Requirements \n\n* Haulable currently only runs on MacOS/Linux; however, it will package your CLI for Windows. \n* Your CLI application must be built using PHP8.0+\n\n### Installation\n\nTo install Haulable, you can use `composer` to install globally, or you can use the Phar directly by downloading the latest build.\n\n```bash\ncomposer global require configured/haulable\n```\n\n### Usage\n\nTo use Haulable, once installed, you can simply run `haulable your_cli_app.phar`. Haulable will then ask you for what target system(s) you'd like to package your CLI app for.\n\n![image](https://user-images.githubusercontent.com/3619398/228088979-4d0e06ab-20c3-4a61-a238-9122735db086.png)\n\n#### Options\nHaulable accepts options and arguments to make it easier to use in CI pipelines\n\n##### Platform\n\nAn option can be one of the following:\n* All Platforms\n* MacOS (Intel)\n* MacOS (Apple)\n* Linux (x86_64)\n* Linux (aarch64)\n* Windows (x64)\n\n```bash\nhaulable your_cli_app.phar --platform=\"<option>\"\n```\n\n## License\nHaulable is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).\n"
  },
  {
    "path": "app/Commands/.gitkeep",
    "content": ""
  },
  {
    "path": "app/Commands/Package.php",
    "content": "<?php\n\nnamespace App\\Commands;\n\nuse App\\Enums\\Platform;\nuse Illuminate\\Support\\Facades\\File;\nuse Illuminate\\Support\\Facades\\Process;\nuse Illuminate\\Support\\Facades\\Storage;\nuse LaravelZero\\Framework\\Commands\\Command;\nuse Symfony\\Component\\Console\\Helper\\ProgressBar;\nuse function Termwind\\{render}; //@codingStandardsIgnoreStart\n\nclass Package extends Command\n{\n    protected $signature = 'package {phar} {--platform=} {--php=}';\n\n    protected $description = 'Package PHAR with PHP Micro';\n\n    protected const STORAGE_URL = 'https://haulable.configured.co/';\n\n    protected ProgressBar $progress;\n\n    protected ?Platform $platform;\n\n    public function handle(): void\n    {\n        if (! File::exists($this->argument('phar'))) {\n            $this->error('The path to the PHAR could not be found.');\n\n            exit();\n        }\n\n        $this->setupProgress();\n\n        render(view('intro', ['version' => app('git.version')]));\n\n        $this->determinePlatform();\n\n        match ($this->platform) {\n            Platform::ALL_PLATFORMS => $this->packageForAllPlatforms(),\n            null => $this->error('The specified --platform option is invalid.'),\n            default => $this->package($this->platform)\n        };\n    }\n\n    private function determinePlatform(): void\n    {\n        if (! $choice = $this->option('platform')) {\n            $choice = $this->choice('Create for which platform?', array_column(Platform::cases(), 'value'));\n        }\n\n        $this->platform = Platform::tryFrom($choice);\n    }\n\n    private function packageForAllPlatforms(): void\n    {\n        collect(Platform::cases())->skip(1)->each(fn (Platform $platform) => $this->package($platform));\n    }\n\n    private function package(Platform $platform, string $phpVersion = null): void\n    {\n        $sfx = $this->downloadSfx($platform, $phpVersion);\n\n        $dir = getcwd().'/'.str($platform->value)->lower()->replace(['(', ')'], '')->replace(' ', '_')->value;\n\n        $buildName = basename($this->argument('phar'));\n        $fileExtension = $platform === Platform::WINDOWS ? '.exe' : '';\n\n        if (! File::isDirectory($dir)) {\n            File::makeDirectory($dir);\n        }\n\n        $result = Process::run(\"cat {$sfx} {$this->argument('phar')} > {$dir}/{$buildName}{$fileExtension}\");\n\n        match (true) {\n            $result->successful() => render(\n                view('packaging-successful', [\n                    'platform' => $platform,\n                    'dir' => $dir,\n                    'buildName' => $buildName,\n                    'fileExtension' => $fileExtension,\n                ])\n            ),\n            default => render(view('error'))\n        };\n    }\n\n    private function downloadSfx(Platform $platform, string $phpVersion = null): string\n    {\n        $filename = $this->sfxFilename($platform, $phpVersion);\n\n        if (Storage::exists($filename)) {\n            return Storage::path($filename);\n        }\n\n        render('💾 Downloading PHP Micro CLI for '.$platform->value);\n\n        $context = stream_context_create([], [\n            'notification' => function ($code, $severity, $message, $messageCode, $bytesTransferred, $bytesMax) {\n                match ($code) {\n                    STREAM_NOTIFY_FILE_SIZE_IS => $this->progress->start($bytesMax),\n                    STREAM_NOTIFY_PROGRESS => $this->progress->setProgress($bytesTransferred),\n                    default => null\n                };\n            },\n        ]);\n\n        $file = file_get_contents(self::STORAGE_URL.$filename, false, $context);\n\n        Storage::put($filename, $file);\n\n        $this->progress->finish();\n\n        render(PHP_EOL);\n\n        return Storage::path($filename);\n    }\n\n    private function sfxFilename(Platform $platform, string $phpVersion = null): ?string\n    {\n        $phpVersion ??= $this->phpVersion();\n\n        return match ([$platform, $phpVersion]) {\n            [Platform::MACOS_INTEL, '8.0'] => 'micro-cli_8.0_macos_intel.sfx',\n            [Platform::MACOS_APPLE, '8.0'] => 'micro-cli_8.0_macos_apple.sfx',\n            [Platform::LINUX, '8.0'] => 'micro-cli_8.0_linux_x86_64.sfx',\n            [Platform::LINUX_ARM, '8.0'] => 'micro-cli_8.0_linux_aarch64.sfx',\n            [Platform::WINDOWS, '8.0'] => 'micro-cli_8.0_windows_x64.sfx',\n            [Platform::MACOS_INTEL, '8.1'] => 'micro-cli_8.1_macos_intel.sfx',\n            [Platform::MACOS_APPLE, '8.1'] => 'micro-cli_8.1_macos_apple.sfx',\n            [Platform::LINUX, '8.1'] => 'micro-cli_8.1_linux_x86_64.sfx',\n            [Platform::LINUX_ARM, '8.1'] => 'micro-cli_8.1_linux_aarch64.sfx',\n            [Platform::WINDOWS, '8.1'] => 'micro-cli_8.1_windows_x64.sfx',\n            [Platform::MACOS_INTEL, '8.2'] => 'micro-cli_8.2_macos_intel.sfx',\n            [Platform::MACOS_APPLE, '8.2'] => 'micro-cli_8.2_macos_apple.sfx',\n            [Platform::LINUX, '8.2'] => 'micro-cli_8.2_linux_x86_64.sfx',\n            [Platform::LINUX_ARM, '8.2'] => 'micro-cli_8.2_linux_aarch64.sfx',\n            [Platform::WINDOWS, '8.2'] => 'micro-cli_8.2_windows_x64.sfx',\n            default => $this->throwInvalidPhpVersion($phpVersion)\n        };\n    }\n\n    private function phpVersion(): string\n    {\n        return $this->option('php') ?? str(phpversion())->beforeLast('.')->value();\n    }\n\n    private function setupProgress(): void\n    {\n        $this->progress = $this->output->createProgressBar();\n        $this->progress->setFormat('[%bar%] %percent%%');\n    }\n\n    private function throwInvalidPhpVersion(string $phpVersion): void\n    {\n        $this->error(\"The needed PHP Micro version could not be found for your PHP version ({$phpVersion}).\");\n\n        exit();\n    }\n}\n"
  },
  {
    "path": "app/Enums/Platform.php",
    "content": "<?php\n\nnamespace App\\Enums;\n\nenum Platform: string\n{\n    case ALL_PLATFORMS = 'All Platforms';\n    case MACOS_INTEL = 'MacOS (Intel)';\n    case MACOS_APPLE = 'MacOS (Apple)';\n    case LINUX = 'Linux (x86_64)';\n    case LINUX_ARM = 'Linux (aarch64)';\n    case WINDOWS = 'Windows (x64)';\n}\n"
  },
  {
    "path": "app/Providers/AppServiceProvider.php",
    "content": "<?php\n\nnamespace App\\Providers;\n\nuse Illuminate\\Support\\ServiceProvider;\n\nclass AppServiceProvider extends ServiceProvider\n{\n    /**\n     * Bootstrap any application services.\n     */\n    public function boot(): void\n    {\n        //\n    }\n\n    /**\n     * Register any application services.\n     */\n    public function register(): void\n    {\n        //\n    }\n}\n"
  },
  {
    "path": "bootstrap/app.php",
    "content": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Create The Application\n|--------------------------------------------------------------------------\n|\n| The first thing we will do is create a new Laravel application instance\n| which serves as the \"glue\" for all the components of Laravel, and is\n| the IoC container for the system binding all of the various parts.\n|\n*/\n\n$app = new LaravelZero\\Framework\\Application(\n    dirname(__DIR__)\n);\n\n/*\n|--------------------------------------------------------------------------\n| Bind Important Interfaces\n|--------------------------------------------------------------------------\n|\n| Next, we need to bind some important interfaces into the container so\n| we will be able to resolve them when needed. The kernels serve the\n| incoming requests to this application from both the web and CLI.\n|\n*/\n\n$app->singleton(\n    Illuminate\\Contracts\\Console\\Kernel::class,\n    LaravelZero\\Framework\\Kernel::class\n);\n\n$app->singleton(\n    Illuminate\\Contracts\\Debug\\ExceptionHandler::class,\n    Illuminate\\Foundation\\Exceptions\\Handler::class\n);\n\n/*\n|--------------------------------------------------------------------------\n| Return The Application\n|--------------------------------------------------------------------------\n|\n| This script returns the application instance. The instance is given to\n| the calling script so we can separate the building of the instances\n| from the actual running of the application and sending responses.\n|\n*/\n\nreturn $app;\n"
  },
  {
    "path": "box.json",
    "content": "{\n    \"chmod\": \"0755\",\n    \"directories\": [\n        \"app\",\n        \"bootstrap\",\n        \"config\",\n        \"vendor\",\n        \"resources\"\n    ],\n    \"files\": [\n        \"composer.json\"\n    ],\n    \"exclude-dev-files\": false,\n    \"exclude-composer-files\": false,\n    \"compression\": \"GZ\",\n    \"compactors\": [\n        \"KevinGH\\\\Box\\\\Compactor\\\\Php\",\n        \"KevinGH\\\\Box\\\\Compactor\\\\Json\"\n    ]\n}\n"
  },
  {
    "path": "composer.json",
    "content": "{\n    \"name\": \"configured/haulable\",\n    \"description\": \"Create standalone PHP CLI applications with PHP Micro CLI\",\n    \"keywords\": [\"framework\", \"laravel\", \"laravel zero\", \"console\", \"cli\"],\n    \"type\": \"project\",\n    \"license\": \"MIT\",\n    \"support\": {\n        \"issues\": \"https://github.com/configuredco/haulable/issues\",\n        \"source\": \"https://github.com/configuredco/haulable\"\n    },\n    \"authors\": [\n        {\n            \"name\": \"Joe Campo\",\n            \"email\": \"joe@configured.co\"\n        }\n    ],\n    \"require\": {\n        \"php\": \"^8.1\"\n    },\n    \"require-dev\": {\n        \"laravel-zero/framework\": \"^10.0\",\n        \"nunomaduro/termwind\": \"^1.15\",\n        \"laravel/pint\": \"^1.5\",\n        \"mockery/mockery\": \"^1.5.1\",\n        \"pestphp/pest\": \"^1.22.3\"\n    },\n    \"autoload\": {\n        \"psr-4\": {\n            \"App\\\\\": \"app/\",\n            \"Database\\\\Factories\\\\\": \"database/factories/\",\n            \"Database\\\\Seeders\\\\\": \"database/seeders/\"\n        }\n    },\n    \"autoload-dev\": {\n        \"psr-4\": {\n            \"Tests\\\\\": \"tests/\"\n        }\n    },\n    \"config\": {\n        \"preferred-install\": \"dist\",\n        \"sort-packages\": true,\n        \"optimize-autoloader\": true,\n        \"allow-plugins\": {\n            \"pestphp/pest-plugin\": true\n        }\n    },\n    \"minimum-stability\": \"stable\",\n    \"prefer-stable\": true,\n    \"bin\": [\"builds/haulable\"]\n}\n"
  },
  {
    "path": "config/app.php",
    "content": "<?php\n\nreturn [\n\n    /*\n    |--------------------------------------------------------------------------\n    | Application Name\n    |--------------------------------------------------------------------------\n    |\n    | This value is the name of your application. This value is used when the\n    | framework needs to place the application's name in a notification or\n    | any other location as required by the application or its packages.\n    |\n    */\n\n    'name' => 'Haulable',\n\n    /*\n    |--------------------------------------------------------------------------\n    | Application Version\n    |--------------------------------------------------------------------------\n    |\n    | This value determines the \"version\" your application is currently running\n    | in. You may want to follow the \"Semantic Versioning\" - Given a version\n    | number MAJOR.MINOR.PATCH when an update happens: https://semver.org.\n    |\n    */\n\n    'version' => app('git.version'),\n\n    /*\n    |--------------------------------------------------------------------------\n    | Application Environment\n    |--------------------------------------------------------------------------\n    |\n    | This value determines the \"environment\" your application is currently\n    | running in. This may determine how you prefer to configure various\n    | services the application utilizes. This can be overridden using\n    | the global command line \"--env\" option when calling commands.\n    |\n    */\n\n    'env' => 'development',\n\n    /*\n    |--------------------------------------------------------------------------\n    | Application Timezone\n    |--------------------------------------------------------------------------\n    |\n    | Here you may specify the default timezone for your application, which\n    | will be used by the PHP date and date-time functions. We have gone\n    | ahead and set this to a sensible default for you out of the box.\n    |\n    */\n\n    'timezone' => 'UTC',\n\n    /*\n    |--------------------------------------------------------------------------\n    | Autoloaded Service Providers\n    |--------------------------------------------------------------------------\n    |\n    | The service providers listed here will be automatically loaded on the\n    | request to your application. Feel free to add your own services to\n    | this array to grant expanded functionality to your applications.\n    |\n    */\n\n    'providers' => [\n        App\\Providers\\AppServiceProvider::class,\n    ],\n\n];\n"
  },
  {
    "path": "config/commands.php",
    "content": "<?php\n\nreturn [\n\n    /*\n    |--------------------------------------------------------------------------\n    | Default Command\n    |--------------------------------------------------------------------------\n    |\n    | Laravel Zero will always run the command specified below when no command name is\n    | provided. Consider update the default command for single command applications.\n    | You cannot pass arguments to the default command because they are ignored.\n    |\n    */\n\n    'default' => App\\Commands\\Package::class,\n\n    /*\n    |--------------------------------------------------------------------------\n    | Commands Paths\n    |--------------------------------------------------------------------------\n    |\n    | This value determines the \"paths\" that should be loaded by the console's\n    | kernel. Foreach \"path\" present on the array provided below the kernel\n    | will extract all \"Illuminate\\Console\\Command\" based class commands.\n    |\n    */\n\n    'paths' => [app_path('Commands')],\n\n    /*\n    |--------------------------------------------------------------------------\n    | Added Commands\n    |--------------------------------------------------------------------------\n    |\n    | You may want to include a single command class without having to load an\n    | entire folder. Here you can specify which commands should be added to\n    | your list of commands. The console's kernel will try to load them.\n    |\n    */\n\n    'add' => [\n        // ..\n    ],\n\n    /*\n    |--------------------------------------------------------------------------\n    | Hidden Commands\n    |--------------------------------------------------------------------------\n    |\n    | Your application commands will always be visible on the application list\n    | of commands. But you can still make them \"hidden\" specifying an array\n    | of commands below. All \"hidden\" commands can still be run/executed.\n    |\n    */\n\n    'hidden' => [\n        NunoMaduro\\LaravelConsoleSummary\\SummaryCommand::class,\n        Symfony\\Component\\Console\\Command\\DumpCompletionCommand::class,\n        Symfony\\Component\\Console\\Command\\HelpCommand::class,\n        Illuminate\\Console\\Scheduling\\ScheduleRunCommand::class,\n        Illuminate\\Console\\Scheduling\\ScheduleListCommand::class,\n        Illuminate\\Console\\Scheduling\\ScheduleFinishCommand::class,\n        Illuminate\\Foundation\\Console\\VendorPublishCommand::class,\n        LaravelZero\\Framework\\Commands\\StubPublishCommand::class,\n    ],\n\n    /*\n    |--------------------------------------------------------------------------\n    | Removed Commands\n    |--------------------------------------------------------------------------\n    |\n    | Do you have a service provider that loads a list of commands that\n    | you don't need? No problem. Laravel Zero allows you to specify\n    | below a list of commands that you don't to see in your app.\n    |\n    */\n\n    'remove' => [\n        // ..\n    ],\n\n];\n"
  },
  {
    "path": "config/filesystems.php",
    "content": "<?php\n\nreturn [\n    'default' => 'local',\n    'disks' => [\n        'local' => [\n            'driver' => 'local',\n            'root' => getenv('HOME').'/.haulable',\n        ],\n    ],\n];\n"
  },
  {
    "path": "config/view.php",
    "content": "<?php\n\nreturn [\n    'paths' => [\n        resource_path('views'),\n    ],\n\n    'compiled' => sys_get_temp_dir().'/haulable',\n];\n"
  },
  {
    "path": "haulable",
    "content": "#!/usr/bin/env php\n<?php\n\ndefine('LARAVEL_START', microtime(true));\n\n/*\n|--------------------------------------------------------------------------\n| Register The Auto Loader\n|--------------------------------------------------------------------------\n|\n| Composer provides a convenient, automatically generated class loader\n| for our application. We just need to utilize it! We'll require it\n| into the script here so that we do not have to worry about the\n| loading of any our classes \"manually\". Feels great to relax.\n|\n*/\n\n$autoloader = require file_exists(__DIR__.'/vendor/autoload.php') ?  __DIR__.'/vendor/autoload.php' : __DIR__.'/../../autoload.php';\n\n$app = require_once __DIR__.'/bootstrap/app.php';\n\n/*\n|--------------------------------------------------------------------------\n| Run The Artisan Application\n|--------------------------------------------------------------------------\n|\n| When we run the console application, the current CLI command will be\n| executed in this console and the response sent back to a terminal\n| or another output device for the developers. Here goes nothing!\n|\n*/\n\n$kernel = $app->make(Illuminate\\Contracts\\Console\\Kernel::class);\n\n$status = $kernel->handle(\n    $input = new Symfony\\Component\\Console\\Input\\ArgvInput,\n    new Symfony\\Component\\Console\\Output\\ConsoleOutput\n);\n\n/*\n|--------------------------------------------------------------------------\n| Shutdown The Application\n|--------------------------------------------------------------------------\n|\n| Once Artisan has finished running, we will fire off the shutdown events\n| so that any final work may be done by the application before we shut\n| down the process. This is the last thing to happen to the request.\n|\n*/\n\n$kernel->terminate($input, $status);\n\nexit($status);\n"
  },
  {
    "path": "phpunit.xml.dist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<phpunit backupGlobals=\"false\"\n         backupStaticAttributes=\"false\"\n         bootstrap=\"vendor/autoload.php\"\n         colors=\"true\"\n         convertErrorsToExceptions=\"true\"\n         convertNoticesToExceptions=\"true\"\n         convertWarningsToExceptions=\"true\"\n         processIsolation=\"false\"\n         stopOnFailure=\"false\">\n    <testsuites>\n        <testsuite name=\"Feature\">\n            <directory suffix=\"Test.php\">./tests/Feature</directory>\n        </testsuite>\n        <testsuite name=\"Unit\">\n            <directory suffix=\"Test.php\">./tests/Unit</directory>\n        </testsuite>\n    </testsuites>\n    <coverage processUncoveredFiles=\"true\">\n        <include>\n            <directory suffix=\".php\">./app</directory>\n        </include>\n    </coverage>\n</phpunit>\n"
  },
  {
    "path": "pint.json",
    "content": "{\n    \"preset\": \"laravel\"\n}"
  },
  {
    "path": "resources/views/error.blade.php",
    "content": "😖 <span class=\"bg-red-400 text-white px-1\">Something unexpected went wrong.</span>\n"
  },
  {
    "path": "resources/views/intro.blade.php",
    "content": "<div class=\"ml-2\">\n    <div>\n        &nbsp;_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_&nbsp;&nbsp;&nbsp;&nbsp;_&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>\n        |&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;|&nbsp;&nbsp;|&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>\n        |&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;__,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;|&nbsp;&nbsp;__,&nbsp;|&nbsp;|&nbsp;&nbsp;|&nbsp;|&nbsp;&nbsp;_&nbsp;&nbsp;<br>\n        |/&nbsp;\\&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;|&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;|/&nbsp;&nbsp;/&nbsp;&nbsp;|&nbsp;|/&nbsp;\\_|/&nbsp;&nbsp;|/&nbsp;&nbsp;<br>\n        |&nbsp;&nbsp;&nbsp;|_/\\_/|_/&nbsp;\\_/|_/|__/\\_/|_/\\_/&nbsp;|__/|__/&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n    </div>\n    <div class=\"px-1 mt-1 bg-green-300 text-black\">by ⚙️&nbsp;&nbsp;Configured</div>\n    <div class=\"px-1 mt-1 bg-blue-300 text-black\">{{ $version }}</div>\n    <em class=\"ml-1\">\n        Create portable PHP CLI applications w/ PHP Micro\n    </em>\n</div>\n"
  },
  {
    "path": "resources/views/packaging-successful.blade.php",
    "content": "<div class=\"space-y-1 mb-1\">\n    <div>\n        📦 <span class=\"bg-green-300 text-black px-1\">Packaging for {{ $platform->value }} successful.</span>\n    </div>\n    <div>\n        ✅ <a href=\"{{ $dir }}/{{ $buildName }}{{ $fileExtension }}\">{{ $dir }}/{{ $buildName }}{{ $fileExtension }}</a>\n    </div>\n</div>\n<br>\n"
  },
  {
    "path": "tests/CreatesApplication.php",
    "content": "<?php\n\nnamespace Tests;\n\nuse Illuminate\\Contracts\\Console\\Kernel;\nuse Illuminate\\Foundation\\Application;\n\ntrait CreatesApplication\n{\n    /**\n     * Creates the application.\n     */\n    public function createApplication(): Application\n    {\n        $app = require __DIR__.'/../bootstrap/app.php';\n\n        $app->make(Kernel::class)->bootstrap();\n\n        return $app;\n    }\n}\n"
  },
  {
    "path": "tests/Pest.php",
    "content": "<?php\n\n/*\n|--------------------------------------------------------------------------\n| Test Case\n|--------------------------------------------------------------------------\n|\n| The closure you provide to your test functions is always bound to a specific PHPUnit test\n| case class. By default, that class is \"PHPUnit\\Framework\\TestCase\". Of course, you may\n| need to change it using the \"uses()\" function to bind a different classes or traits.\n|\n*/\n\nuses(Tests\\TestCase::class)->in('Feature');\n\n/*\n|--------------------------------------------------------------------------\n| Expectations\n|--------------------------------------------------------------------------\n|\n| When you're writing tests, you often need to check that values meet certain conditions. The\n| \"expect()\" function gives you access to a set of \"expectations\" methods that you can use\n| to assert different things. Of course, you may extend the Expectation API at any time.\n|\n*/\n\nexpect()->extend('toBeOne', function () {\n    return $this->toBe(1);\n});\n\n/*\n|--------------------------------------------------------------------------\n| Functions\n|--------------------------------------------------------------------------\n|\n| While Pest is very powerful out-of-the-box, you may have some testing code specific to your\n| project that you don't want to repeat in every file. Here you can also expose helpers as\n| global functions to help you to reduce the number of lines of code in your test files.\n|\n*/\n\nfunction something(): void\n{\n    // ..\n}\n"
  },
  {
    "path": "tests/TestCase.php",
    "content": "<?php\n\nnamespace Tests;\n\nuse LaravelZero\\Framework\\Testing\\TestCase as BaseTestCase;\n\nabstract class TestCase extends BaseTestCase\n{\n    use CreatesApplication;\n}\n"
  }
]