stakx / stakx
Yet another static website generator powered by Symfony and Twig
Requires
- ext-dom: *
- ext-fileinfo: *
- ext-json: *
- ext-libxml: *
- erusev/parsedown: ^1.6.1
- erusev/parsedown-extra: ^0.7.1
- gregwar/rst: ^1.0
- maciejczyzewski/bottomline: ^0.2.0
- mikey179/vfsstream: ^1.6
- psr/log: ^1.0.2
- react/http: ^0.8.3
- scrivo/highlight.php: ^9.12
- scssphp/scssphp: ^1.0
- symfony/config: ^3.4.0
- symfony/console: ^3.4.0
- symfony/debug: ^3.4.0
- symfony/dependency-injection: ^3.4.0
- symfony/event-dispatcher: ^3.4.0
- symfony/filesystem: ^3.4.0
- symfony/finder: ^3.4.0
- symfony/routing: ^3.4
- symfony/yaml: ^3.4.0
- twig/twig: ^1.26
Requires (Dev)
- phpunit/phpunit: ~4.8.35
- phpunit/phpunit-mock-objects: ~2.3.8
- dev-develop
- 0.2.x-dev
- v0.2.1
- v0.2.0
- v0.2.0-beta2
- v0.2.0-beta1
- v0.2.0-alpha2
- v0.2.0-alpha1
- 0.1.x-dev
- v0.1.3
- v0.1.2
- v0.1.2-beta1
- v0.1.1
- v0.1.0
- v0.1.0-beta3
- v0.1.0-beta2
- v0.1.0-beta1
- v0.1.0-alpha2
- v0.1.0-alpha1
- v0.0.0
- dev-chroe/update-to-php-8-again
- dev-dependabot/composer/react/http-1.9.0
- dev-fix/support-linked-assets-in-serve
- dev-chore/php-8-migration
- dev-php-8-support
- dev-feature/filesystem-tests
- dev-master
- dev-feature/migrate-vfsstream-1.7
- dev-hotfix/include-supersede-exclude
- dev-feature/serve-improvements
This package is auto-updated.
Last update: 2026-03-12 08:44:31 UTC
README
Stakx is a static website generator built in PHP inspired by Jekyll and Sculpin. Unlike its alternatives, Stakx is distributed as a single executable so you don't need to worry about silly bundle install or composer install commands to build your website.
Philosophy
Stakx's philosophy is to be treated as a model-view-controller (MVC) setup where Stakx itself is the controller, Twig makes up the views, and your content makes up the models. Following this philosophy will allow you to have truly reusable content making migration to and from Stakx a breeze.
Building the Sample Project
Stakx provides a sample project for people to learn from. The sample project can be built in one of two ways.
Download a Release
Get the latest PHAR from the Releases page, download the repository, put the PHAR in the example directory and run the following command from within the example directory:
php ./stakx.phar build
Build from Git
Clone the repository, fetch the dependencies, and compile.
git clone https://github.com/stakx-io/stakx.git
composer install --no-dev
cd example/
php ../bin/stakx build
Locally Serving a Site
Stakx includes a built-in web server, which you can run with the following commands. Access your site at http://0.0.0.0:8000/.
cd example/
php ../bin/stakx serve
Note that the serve command will only build the requested page, and not the entire site. The serve command is ideal for quick development and testing.
To build your site for production, use the build command.
