PHP code example of justinholtweb / craft-live
1. Go to this page and download the library: Download justinholtweb/craft-live 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/ */
justinholtweb / craft-live example snippets
sh
docker exec -w /var/www/html ddev-plugin-testing-web php /var/www/craft-live/tests/integration/checks.php
docker exec -w /var/www/html ddev-plugin-testing-web php /var/www/craft-live/tests/integration/schema.php
sh
php craft live/snapshots/rebuild 123 # rewrite one post's static files
php craft live/snapshots/rebuild --all
php craft live/snapshots/collect-garbage
php craft live/scheduled/release # publish anything whose time has come (Pro)