Download the PHP package minetro/simple-blogger without Composer
On this page you can find all versions of the php package minetro/simple-blogger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download minetro/simple-blogger
More information about minetro/simple-blogger
Files in minetro/simple-blogger
Package simple-blogger
Short Description Simple static blogger based on Nette
License BSD-3-Clause
Homepage https://github.com/minetro/simple-blogger
Informations about the package simple-blogger
Website 🚀 contributte.org | Contact 👨🏻💻 f3l1x.io | Twitter 🐦 @contributte
Disclaimer
:warning: | This project is no longer being maintained. Please use contributte/webapp-skeleton. |
---|
Composer | minetro/simple-blogger |
---|---|
Version | |
PHP | |
License |
Simple static blogger based on Nette.
This project is deprecated. Use better solution blogette/platform.
Usage
Register BloggerExtension
to your other extensions.
You have to set folder where Nette\Utils\Finder will be looking for posts.
Posts
Post consists of two parts. Meta
file and content
file.
Metafile
Let's we have a file in data/201505/post.neon. All meta files must have neon
extension.
Take a look to example meta file.
Required properties are id, date, title and post.
Post is a target to your content
file. Content file could be .md
, .latte
or whatever. But you have to specific
parser. In this case it is parsedown.
Model
PostsService
To obtain all posts, one posts, order posts, filters posts here is PostsService
.
->findAll(Configuration $c)
- returns array of posts.
->fetch(Configuration $c)
- returns just one posts or nothing.
Configuration
There are 3 objects. Criteria, Sorter and Paginator.
Criteria
- it is for posts filtering (excluding)
Sorter
- it is for posts sorting
Paginator
- it extends classic Nette\Utils\Paginator
View
View is not part of this library. You have to display posts by yourself.
Development
This package was maintain by these authors.
Consider to support contributte development team. Also thank you for being used this package.