Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pageon/stitcher-core
High performance, static websites for PHP developers
https://github.com/pageon/stitcher-core
performance php static-site twig
Last synced: 3 days ago
JSON representation
High performance, static websites for PHP developers
- Host: GitHub
- URL: https://github.com/pageon/stitcher-core
- Owner: pageon
- License: mit
- Created: 2016-01-22T16:48:42.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-11-26T09:25:32.000Z (about 1 month ago)
- Last Synced: 2024-12-24T08:08:32.091Z (10 days ago)
- Topics: performance, php, static-site, twig
- Language: PHP
- Homepage:
- Size: 1.04 MB
- Stars: 149
- Watchers: 10
- Forks: 7
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
Awesome Lists containing this project
README
# Stitcher [![Build Status](https://scrutinizer-ci.com/g/pageon/stitcher-core/badges/build.png?b=develop)](https://scrutinizer-ci.com/g/pageon/stitcher-core/build-status/develop) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/pageon/stitcher-core/badges/quality-score.png?b=develop)](https://scrutinizer-ci.com/g/pageon/stitcher-core/?branch=develop) [![Code Coverage](https://scrutinizer-ci.com/g/pageon/stitcher-core/badges/coverage.png?b=develop)](https://scrutinizer-ci.com/g/pageon/stitcher-core/?branch=develop)
High performance, static websites for PHP developers.
```sh
composer create-project pageon/stitcher
```### Why Stitcher?
Stitcher differs from many other static site generator in two areas. First of all: **performance is key**. Stitcher is built from its core for high performance websites. All tools available to you put performance on the first place. Secondly, it doesn't try to add extra syntax to existing formats. Stitcher provides a robust set of tools **for developers** to build with, and not a lot of hacks so everything fits in one file.
Also important to note, included with Stitcher:- Automatic image optimization, as easy as `image.srcset`
- HTTP/2 server push support
- Markdown, YAML and JSON
- Twig and Smarty support
- Data set overviews and details; pagination, sorting and filtering
- Built-in SASS support
- JavaScript and CSS minification
- Built-in SEO and meta tag optimizationsA quick look at Stitcher:
```yaml
# site.yml/blog:
template: blog
variables:
posts: data/blog.yml
/blog/{id}:
template: blog.post
variables:
post: data/blog.yml
adapters:
collection:
variable: post
field: id
``````yaml
# data/blog.ymlhello_world:
date: 2017-03-10
highlight: false
title: Hello world
content: blog/hello.md
image: hello_world.jpgfoo_bar:
date: 2017-03-14
highlight: true
title: Foo Bar
content: blog/far_bar.md
image: foo_bar.jpg
``````html
{% extends 'index.html' %}
{% block content %}
{{ blog.title }}
{{ blog.content }}
{% endblock %}
```You can read more about it on [the Stitcher website](https://www.stitcher.io).