PHP code example of artetecha / wordpress-upsun-starter
1. Go to this page and download the library: Download artetecha/wordpress-upsun-starter 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/ */
artetecha / wordpress-upsun-starter example snippets
bash
upsun ssh 'cd wordpress && wp core install \
--url="$(echo $PLATFORM_ROUTES | base64 -d | php -r "foreach (json_decode(file_get_contents(\"php://stdin\"), true) as \$u => \$r) if ((\$r[\"type\"] ?? \"\") === \"upstream\") { echo \$u; break; }")" \
--title="My Site" --admin_user=admin [email protected]'