Static Site Generator
Create a static version of the site
Install
Via Composer
composer require getpop/static-site-generator
Usage
Initialize the component:
\PoP\Root\ComponentLoader::initializeComponents([
\PoP\SSG\Component::class,
]);
PHP versions
Requirements:
- PHP 7.4+ for development
- PHP 7.1+ for production
Supported PHP features
Same as the Supported PHP features for getpop/root
Downgrading code to PHP 7.1
Via Rector (dry-run mode):
composer downgrade-code
Standards
Change log
Please see CHANGELOG for more information on what has changed recently.
Testing
composer test
Static Analysis
Execute phpstan with level 8:
composer analyse
To run checks for level 0 (or any level from 0 to 8):
./vendor/bin/phpstan analyse -l 0 src tests
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please email leo@getpop.org instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.