PHPackages                             bootpress/blog - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. bootpress/blog

ActiveLibrary[Templating &amp; Views](/categories/templating)

bootpress/blog
==============

A flat file Blog and CMS that doesn't skimp on features, and can be utilized in any website.

v1.4.1(1y ago)16745↑2900%4MITPHPPHP &gt;=5.4

Since Oct 14Pushed 1y ago3 watchersCompare

[ Source](https://github.com/Kylob/Blog)[ Packagist](https://packagist.org/packages/bootpress/blog)[ Docs](https://www.bootpress.org/components/blog.html)[ RSS](/packages/bootpress-blog/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (18)Versions (7)Used By (0)

use BootPress\\Blog\\Component as Blog;
=======================================

[](#use-bootpressblogcomponent-as-blog)

[![Packagist](https://camo.githubusercontent.com/9a1d0cd2019090fc3f9c91924e8162a2eea25283b84e704f81d785a5cf035c97/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626f6f7470726573732f626c6f672e7376673f7374796c653d666c61742d737175617265266c6162656c3d5061636b6167697374)](https://packagist.org/packages/bootpress/blog)[![License MIT](https://camo.githubusercontent.com/a7e65aee57b11d28e4caff8b945729a66be0bb663f7f93bd24c5aa65699f148e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![HHVM Tested](https://camo.githubusercontent.com/3422fab0fbdb2e50d74ced25d6df3e7e1be8b373f48c708a785f247a503409d1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4848564d2d5465737465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Blog)[![PHP 7 Supported](https://camo.githubusercontent.com/7dae9186d16bac6b5d5cee34d3bec4400516657b575bc1c784125d70a6871126/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230372d537570706f727465642d3838393262662e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Blog)[![Build Status](https://camo.githubusercontent.com/8b96d5088bcd72b46b2d1ac30030fef60466b4170109f89e2fb70c1eb3b8cc05/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4b796c6f622f426c6f672f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Kylob/Blog)[![Code Climate](https://camo.githubusercontent.com/cb293760ecd77d3c6ec536ffe4716a2941816711bdac24e3db32147d0e24fbc3/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6769746875622f4b796c6f622f426c6f672e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Blog)[![Test Coverage](https://camo.githubusercontent.com/751180aef874f94f88254cd7c7dded24f13e019690c5b76632cef5e2b2e18d7f/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f6769746875622f4b796c6f622f426c6f672e7376673f7374796c653d666c61742d737175617265)](https://codeclimate.com/github/Kylob/Blog/coverage)

A flat file Blog and CMS that doesn't skimp on features, and can be utilized in any website.

Installation
------------

[](#installation)

Add the following to your `composer.json` file.

```
{
    "require": {
        "bootpress/blog": "^1.0"
    }
}
```

Create an `.htaccess` file in your website's public root folder to redirect everything that doesn't exist to an `index.php` file.

```
# Prevent directory browsing
Options All -Indexes

# Turn on URL re-writing (remove 'example.com/' if not on localhost)
RewriteEngine On
RewriteBase /example.com/

# If the file exists, then that's all folks
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .+ - [L]

# For everything else, there's BootPress
RewriteRule ^(.*)$ index.php [L]

```

Your `index.php` file should then look something like this:

```
