PHP code example of sydgren / laravel-shipit
1. Go to this page and download the library: Download sydgren/laravel-shipit library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
sydgren / laravel-shipit example snippets
use Sydgren\ShipIt\Facades\ShipIt;
$siteId = ShipIt::resolveSiteId('example.com');
$deployment = ShipIt::deploy($siteId, branch: 'main')['deployment'];
$status = ShipIt::output($deployment['id'])['status'];
bash
php artisan shipit:deploy --watch
bash
php artisan vendor:publish --tag=shipit-config