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.
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.
Stakx provides a sample project for people to learn from. The sample project can be built in one of two ways.
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
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
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.