calevans / staticforge-sitedownloader
StaticForge Feature: SiteDownloader
Installs: 3
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/calevans/staticforge-sitedownloader
Requires
- php: ^8.4
- eicc/utils: ^1.2
- league/html-to-markdown: ^5.1
- symfony/console: ^6.4
- symfony/css-selector: ^8.0
- symfony/dom-crawler: ^8.0
Requires (Dev)
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-12-12 15:06:48 UTC
README
A StaticForge feature package that downloads a remote site and converts the content to markdown.
This is no where near a perfect conversion. However, it is good enough to get your content. You will need to do some cleanup and reorganization after the download.
I've been using this to convert some old WordPress sites to StaticForge static sites.
Installation
composer require calevans/staticforge-sitedownloader php vendor/bin/staticforge feature:setup sitedownloader
- Create a new directory for your site.
- Install staticforge
- run
php vendor/bin/staticforge site:init - Install this package
- Configure .env and siteconfigure.yaml as needed.
- Run
php vendor/bin/staticforge site:download --url=YOUR_DOMAIN_HEREto download and convert the remote site. - Create a template or use one of the templates we provide.
- Render your site and then use site:devserver to view it. Repeate this as often as needed.
- Once you are happy with it, fill out the
# SFTP Upload Configurationsection of.envfile. - Run
php vendor/bin/staticforge site:uploadto upload your site to your server.