'vcs', 'url' => 'git@github.com:Delta-Solutions/inertia-scaffold.git' ]; $content = json_encode($composer, JSON_PRETTY_PRINT); // Don't escape forward slashes $content = str_replace('\/', '/', $content); file_put_contents('composer.json', $content); // Install the package exec('composer require delta-solutions/inertia-scaffold -q'); // Remove the installer exec('rm installer.php'); // Add all modified files to git exec('git add .'); // Commit the installation exec('git commit -m "Install the inertia scaffold package"'); // Publish the scaffold config exec('php artisan scaffold:publish-config'); ?>