PHPackages                             rareloop/pebble-acf-blocks - 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. rareloop/pebble-acf-blocks

ActiveLibrary

rareloop/pebble-acf-blocks
==========================

065PHPCI failing

Since Apr 28Pushed 6y agoCompare

[ Source](https://github.com/Rareloop/pebble-acf-blocks)[ Packagist](https://packagist.org/packages/rareloop/pebble-acf-blocks)[ RSS](/packages/rareloop-pebble-acf-blocks/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

ACF Blocks for Pebble (Lumberjack &amp; Primer)
===============================================

[](#acf-blocks-for-pebble-lumberjack--primer)

This package provides a way to create [ACF Blocks](https://www.advancedcustomfields.com/resources/blocks/) that use Twig templates and simultaneously integrate with both Lumberjack and Primer.

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

[](#installation)

`composer require rareloop/pebble-acf-blocks`

Once installed, register the Service Provider in config/app.php:

```
'providers' => [
    ...

    Rareloop\Lumberjack\AcfBlocks\AcfBlocksProvider::class,

    ...
],
```

Copy the example `config/acfblocks.php` file to you theme directory.

Usage
-----

[](#usage)

To create a block, first create a child of the `AcfBlock`. This should sit in the same folder as your Primer component, for example `blocks/my-block`. The name of the class should also be the Upper Camel Case version of the folder name, in our case `MyBlock`.

*Note: Pebble maps the namespace `\Patterns` to the directory `my-theme/resources/patterns`*

```
