Lumberjack MVC Framework

website·Indexed 33 days ago

https://docs.lumberjack.rareloop.com

A powerful MVC framework for modern WordPress developers designed to make theme development more expressive and easier to maintain. It features a PSR-11 compatible container, PSR-15/7 middleware support, a fluent Query Builder alternative to WP_Query, and integrated support for Twig view models and routing. Requires PHP 8.3+ for recent versions.

Tokens
133K
Snippets
888
Records
1K
Agent score
47%

What's inside Lumberjack

  1. Overview of the Lumberjack MVC Framework

    v7.md
    Lumberjack is an object-oriented MVC framework designed for modern WordPress development. It aims to help developers write more expressive, structured, and maintainable code by implementing MVC patterns to keep code DRY (Don't Repeat Yourself). It is built upon other open-source projects, specifically Timber and Bedrock.
  2. Overview of the Lumberjack MVC Framework

    Lumberjack is an object-oriented MVC framework designed for modern WordPress development. It aims to make WordPress code more expressive, structured, and easier to maintain by implementing MVC patterns to keep code DRY (Don't Repeat Yourself). It is built upon other open-source projects, specifically Timber and Bedrock.
  3. Overview of the Lumberjack MVC Framework

    v6.md
    Lumberjack is an MVC (Model-View-Controller) framework designed for modern WordPress development. It enables developers to write more expressive, structured, and maintainable code by applying object-oriented patterns to WordPress. It is built upon other open-source projects, specifically Timber and Bedrock.
  4. Overview of the Lumberjack MVC Framework

    v4.md
    Lumberjack is an MVC (Model-View-Controller) framework designed for modern WordPress development. It enables developers to write more expressive, structured, and maintainable code by implementing object-oriented patterns. It is built upon other open-source WordPress projects, specifically Timber (for templating) and Bedrock (for site structure).
  5. Overview of the Lumberjack MVC Framework

    v8.md
    Lumberjack is an MVC (Model-View-Controller) framework designed for modern WordPress development. It aims to make WordPress code more expressive, structured, and easier to maintain by utilizing object-oriented patterns. It is built upon other open-source projects, specifically Timber and Bedrock.
  6. Overview of the Lumberjack MVC Framework

    v8.1.md
    Lumberjack is an MVC (Model-View-Controller) framework designed for modern WordPress development. It enables developers to write more expressive, structured, and maintainable code by implementing object-oriented patterns. It is built upon other open-source WordPress projects, specifically Timber and Bedrock.
  7. Overview of the Lumberjack MVC Framework

    Lumberjack is an object-oriented MVC framework designed for modern WordPress development. It aims to make code more expressive and maintainable by implementing MVC patterns to keep code structured and DRY. It is built upon other open-source WordPress projects, specifically Timber and Bedrock.
  8. Query WordPress data using the built-in Query Builder

    v7
    Lumberjack includes the rareloop/lumberjack-querybuilder package in its core. This provides a fluent, expressive alternative to WP_Query for querying posts and other data without needing to manage 'the loop'.
  9. Upgrade Lumberjack from v3 to v4

    v4
    Upgrading from v3 to v4 involves several critical changes to dependencies, PHP requirements, and core architecture. Key requirements include updating the core package version and ensuring the environment runs at least PHP 7.1, as PHP 7.0 is no longer supported.
    "rareloop/lumberjack-core": "^4.0"
  10. Understand Lumberjack error page behavior

    Lumberjack uses Ignition to provide detailed error pages during development. In production, when APP_DEBUG is set to false in the .env file, Lumberjack catches exceptions and displays a generic, styled error page to prevent the exposure of sensitive stack traces or blank pages.
  11. Use Lumberjack Post objects for expressive queries

    v3
    Lumberjack provides a Rareloop\Lumberjack\Post class that extends Timber\Post. It allows developers to instantiate posts by ID or run queries that return collections of Post objects, providing a more expressive way to handle WordPress data than standard WP_Post objects.
    use Rareloop\Lumberjack\Post;
    
    // Instantiate a post by ID
    $post = new Post(1);
    
    // Run a query using WP_Query arguments
    $collection = Post::query($wpQueryArray);