Releases: Automattic/php-toolkit
Releases · Automattic/php-toolkit
Release v0.0.23-alpha
Add php_functions.php to autoload
Release v0.0.22-alpha
Inline Step-related scripts into their class definitions. Sourcing th…
Release v0.0.21-alpha
Trigger new releases on workflow_dispatch
Release v0.0.20-alpha
Change the auto-release versioning scheme to v0.0.\d-alpha
Blueprints.phar v0.0.3-alpha
This release:
- Passes the full test suite on Windows, Mac, and Linux on PHP 7.2+
- Successfully executed 100 popular v1 Blueprints from the WordPress plugin directory and the Blueprints gallery
- Supports Blueprints v2
There's likely a lot of broken code paths. Please try it and report any problems as issues in this repo.
To use, run:
php blueprints.phar
Or
chmod 0755 ./blueprints.phar
./blueprints.phar
Blueprints.phar v0.0.2-alpha
A second alpha version of an all-PHP Blueprints v2 runner explored in #9. It supports both v1 and v2 schemas.
It likely breaks in all sorts of ways. This release is meant for collecting error reports. Usage:
> php ./blueprints.phar
WordPress Blueprint Runner
Usage: php blueprints.phar <blueprint> --site-url=<url> --site-path=<path> [options]
Positional arguments:
blueprint Path / URL / DataReference to the blueprint (required)
Options:
-u, --site-url <value> Public site URL (https://example.com)
--site-path <value> Target directory with WordPress install context) (required)
-x, --execution-context <value> Source directory with Blueprint context files
-m, --mode <value> Execution mode (create|apply) (default 'create-new-site')
-d, --db-engine <value> Database engine (mysql|sqlite) (default 'mysql')
--db-host <value> MySQL host (default '127.0.0.1')
--db-user <value> MySQL user (default 'root')
--db-pass <value> MySQL password (default '')
--db-name <value> MySQL database (default 'wordpress')
-p, --db-path <value> SQLite file path (default 'wp.db')
-t, --truncate-new-site-directory Delete target directory if it exists before execution (default false)
--allow <value> Allowed permissions. One of: read-local-fs
-h, --help Show full help (default false)
-V, --version Show version (default false)
Examples:
php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path /var/www/mysite.com
php blueprints.phar my-blueprint.json --execution-context /var/www --site-url https://mysite.test --mode apply --site-path ./site
php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path ./mysite --truncate-site-directory
Blueprints.phar v0.0.1-alpha
The first alpha version of an all-PHP Blueprints v2 runner explored in #9. It supports both v1 and v2 schemas.
It likely breaks in all sorts of ways. This release is meant for collecting error reports. Usage:
> php ./blueprints.phar
WordPress Blueprint Runner
Usage: php blueprints.phar <blueprint> --site-url=<url> --site-path=<path> [options]
Positional arguments:
blueprint Path / URL / DataReference to the blueprint (required)
Options:
-u, --site-url <value> Public site URL (https://example.com)
--site-path <value> Target directory with WordPress install context) (required)
-x, --execution-context <value> Source directory with Blueprint context files
-m, --mode <value> Execution mode (create|apply) (default 'create-new-site')
-d, --db-engine <value> Database engine (mysql|sqlite) (default 'mysql')
--db-host <value> MySQL host (default '127.0.0.1')
--db-user <value> MySQL user (default 'root')
--db-pass <value> MySQL password (default '')
--db-name <value> MySQL database (default 'wordpress')
-p, --db-path <value> SQLite file path (default 'wp.db')
-t, --truncate-new-site-directory Delete target directory if it exists before execution (default false)
--allow <value> Allowed permissions. One of: read-local-fs
-h, --help Show full help (default false)
-V, --version Show version (default false)
Examples:
php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path /var/www/mysite.com
php blueprints.phar my-blueprint.json --execution-context /var/www --site-url https://mysite.test --mode apply --site-path ./site
php blueprints.phar my-blueprint.json --site-url https://mysite.test --site-path ./mysite --truncate-site-directory