truetone / peloton
A fast, secure, minimal PHP application for content-focused websites
Requires
- guzzlehttp/guzzle: ~6.0
- klein/klein: ^2.1
- symfony/yaml: ^3.1
- thoma127/dict: ^0.1.2
- twig/twig: ~1.0
Requires (Dev)
- phpunit/phpunit: ^6.2
This package is not auto-updated.
Last update: 2025-04-27 06:53:04 UTC
README
Peloton is a minimal web application and templating system.
It uses Twig for templates and Klein for routing. What does that mean? Let's talk requests.
Requests
Let's imagine a web server hosting static HTML pages. Those are just plain text
files as I'm sure you know. A browser sends a request to the server. If the
server can find a file that matches the request it returns a status code of
200 OK
and sends the contents of the file back. (If the server can't find it,
it sends a 404
status code back.)
We're abstracting that transaction a little. The server is configured to send
all requests for sites that use this application to public/index.php
.
Typically index.php
will be pretty minimal. That's because this app handles
requests, compiles templates and returns HTML. Klein handles the routing part.
Twig is the template engine.
Thus Peloton is a hybrid between CMS and static site. Templates are compiled on the fly, but we have no database dependencies, making your app faster and more secure. Peloton is designed for sites where the content is the center.
Development
See CONTRIBUTING
History
See CHANGELOG
Credits
See AUTHORS
License
See LICENSE