定制 minetro/simple-blogger 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

minetro/simple-blogger

最新稳定版本:0.1.2

Composer 安装命令:

composer create-project minetro/simple-blogger

包简介

Simple static blogger based on Nette

README 文档

README

68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f6769747465722f6379616e 68747470733a2f2f62616467656e2e6e65742f62616467652f737570706f72742f666f72756d2f79656c6c6f77 68747470733a2f2f62616467656e2e6e65742f62616467652f73706f6e736f722f646f6e6174696f6e732f463936383534

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Disclaimer

⚠️ 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.

extensions:
	blog: Minetro\Blog\Simple\DI\BloggerExtension

You have to set folder where Nette\Utils\Finder will be looking for posts.

blog:
	posts: %appDir%/data

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.

id: 1
date: 06.05.2015
title: Some cool title
post: %file%/post.md

seo:
	title: 'Best framework in the world'
	keywords: 'nette, php, framework'
	description: 'Nothing to say. It's a fact.'

tags:
	- php

config:
	comments: yes
	social: yes
	parser: parsedown

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.

538058?v=3&s=80

Consider to support contributte development team. Also thank you for being used this package.

统计信息

  • 总下载量: 4.96k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2015-05-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固