leonstafford / wp2static
Security & Performance via static website publishing.
Installs: 3 009
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1 425
Watchers: 28
Forks: 274
Type:wordpress-plugin
Requires
- php: >=7.4
- ext-mbstring: *
- ext-simplexml: *
- lib-libxml: *
- leonstafford/wp2staticguzzle: ^7.2.0
- symfony/polyfill-php80: ^1.27.0
- wa72/url: ^0.7.1
Requires (Dev)
- 10up/wp_mock: ^0.5
- dealerdirect/phpcodesniffer-composer-installer: *
- mikey179/vfsstream: ^1.6
- php-parallel-lint/php-parallel-lint: *
- phpcompatibility/php-compatibility: *
- phpunit/phpunit: 9.5.24
- squizlabs/php_codesniffer: *
- szepeviktor/phpstan-wordpress: *
- thecodingmachine/phpstan-strict-rules: *
- wp-coding-standards/wpcs: *
Replaces
- dev-develop
- 7.2
- 7.1.7
- 7.1.6
- 7.1.5
- 7.1.4
- 7.1.2
- dev-feature/STR-9526_promote-strattic-benefits
- dev-feature/STR-9652_general_promotion_notice
- dev-feature/STR-STR-9651_update-plugin-screen-links
- dev-feature/STR-9650_add-strattic-link-in-sidebar
- dev-feature/fix-typing
- dev-feature/fix-code-quality-issues
- dev-feature/bump-deps
- dev-feature/bump-deps-fix-deprecations
- dev-feature/test-instructions
- dev-fix/ignore-external-reqs-unit-tests-on-ci
- dev-feature/bump-dependencies
- dev-fix/crawl-redirect-errors
- dev-master
- dev-feature/generation-vs-crawling
- dev-curl_to_guzzle
- dev-less-detection-more-discovery
This package is auto-updated.
Last update: 2024-12-14 17:21:55 UTC
README
A WordPress plugin for static site generation and deployment.
Latest: WP2Static joins Strattic, the leading WordPress to headless and static site end-to-end publishing platform!
Strattic is generously keeping the WP2Static plugin available and maintained for open source users!
Installation options
- from this source code
git clone https://github.com/wp2static/wp2static.git
(runcomposer install
afterwards) - via Composer
composer require wp2static/wp2static
- get installer zip from wp2static.com
- compile your own installer zip from source code
Docs
Support Forum
Contributing
Testing
WP2Static includes various types of code quality and functionality tests.
Tests are defined as Composer scripts within the composer.json
file.
composer run-script test
will run the main linting, static analysis and unit tests. It will not run code coverage by default. To run code coverage, use composer run-script coverage
, this will require XDebug installed.
composer run-script test-integration
will run end to end tests. This requires that you have the nix-shell
command available from NixOS. More info on the intgration tests can be found in the README within the integration-tests
directory.
You can run individual test stages by specifying any of the defined scripts within composer.json
with a command like composer run-script phpunit
. You can pass arguments, such as to skip slow external request making phpunit tests, run composer run-script phpunit -- --exclude-group ExternalRequests
.
Continuous Integration is provided by GitHub Actions, which run code quality, unit and end to end tests.