Skip to content

alwaysblank/plumbing-acf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ACF 👩‍🔧

This provides a very, very simple wrapper for ACF. The only meaningful "feature" it adds in this version is the ability to query several fields at once, and return them in a compiled array.

Usage

First, install the package:

composer require livy/plumbing-acf

Once it's installed, you can access its methods like so:

Livy\Plumbing\ACF\Simple::getField('my-field');

To save some typing, you can always use use:

use Livy\Plumbing\ACF\Simple as ACF;

ACF::getField('my-field');

getFields()

This method can accept several fields to query at once, and will return them as an array (or a collection, if Illuminate\Collection) is available. See the method source for documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages