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

AbandonedArchivedLibrary

log1x/acf-blocks
================

ACF Blocks is a small package for Sage 10 to assist you in easily creating Gutenberg Blocks with Advanced Custom Fields.

11161PHP

Since Sep 21Pushed 6y agoCompare

[ Source](https://github.com/Log1x/acf-blocks)[ Packagist](https://packagist.org/packages/log1x/acf-blocks)[ RSS](/packages/log1x-acf-blocks/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

ACF Blocks
==========

[](#acf-blocks)

ACF Blocks is a small package for Sage 10 to assist you in easily creating Gutenberg Blocks with Advanced Custom Fields.

**ABANDONED: USE [acf-composer](https://github.com/Log1x/acf-composer).**

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

[](#installation)

```
$ composer require log1x/blocks
```

Add `App\Blocks\BlockServiceProvider::class` to the providers array in `config/app.php`.

Usage
-----

[](#usage)

- Create a directory to store your Blocks.

```
app/Blocks
└── Example # Your Block
    ├── Example.php # Where you register your block, fields, and data passed to it's view.
    └── views
        ├── example.blade.php # Block view
        ├── example.css       # Block CSS file (optional)
        └── example.js        # Block JS file (optional)

```

- Register your Block, attach it's fields, and provide data for your view (similar to Sage 10's Composers).

```
# Blocks/Example/Example.php
