https://github.com/rareloop/lumberjack-docs
Documentation repository for Lumberjack, hosted GitBook: https://docs.lumberjack.rareloop.com/
https://github.com/rareloop/lumberjack-docs
Last synced: about 2 months ago
JSON representation
Documentation repository for Lumberjack, hosted GitBook: https://docs.lumberjack.rareloop.com/
- Host: GitHub
- URL: https://github.com/rareloop/lumberjack-docs
- Owner: Rareloop
- Created: 2018-06-15T09:50:24.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T10:51:54.000Z (almost 2 years ago)
- Last Synced: 2024-12-29T07:43:14.135Z (about 1 year ago)
- Size: 173 KB
- Stars: 6
- Watchers: 2
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
description: Supercharge your WordPress Development
---
# Introduction
Lumberjack is a powerful MVC framework for the modern WordPress developer. Write better, more expressive and easier to maintain code.
## Who is Lumberjack for?
Coming from another PHP framework such as Laravel, have experience using Timber with WordPress but want more, or are just getting started with modern WordPress? Then Lumberjack is for you.
Use as little or as much as you need, it's beginner friendly!
## Beautiful code. Easy to maintain
Object orientated and MVC patterns help keep your code structured and DRY.
**index.php**
```php
class IndexController
{
public function handle()
{
$context = Timber::get_context();
$context['posts'] = Post::whereStatus('publish')
->limit(5)
->get();
return new TimberResponse('index.twig', $context);
}
}
```
**index.twig**
```markup
{% raw %}
{% if posts is not empty %}
Recent Articles
-
{{ $post->title }}
{{ $post->preview }}
Read the full story
{% for post in posts %}
{% endfor %}
{% endif %}
{% endraw %}
```
## You're in good company
> Lumberjack is the deluxe version of what Modern WordPress should look like today. The team has done a great job of making it easy to build complicated custom applications while taking advantage of the best parts of WordPress.
>
> * _**Jared Novack - Timber creator**_
Standing on the shoulders of giants, Lumberjack proudly builds on the great work of other open source WordPress projects:
* [Timber](https://www.upstatement.com/timber/)
* [Bedrock](https://roots.io/bedrock/)
## Made by [Rareloop](https://rareloop.com)
We're a Digital Product Studio based in Southampton (UK) with many years experience working on modern WordPress websites. We design and build digital products for a range of clients, take a look at what else we can do.
[Find out more](https://www.rareloop.com/)