PHPackages                             samrap/acf-fluent - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. samrap/acf-fluent

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

samrap/acf-fluent
=================

A fluent interface for the Advanced Custom Fields WordPress plugin

v0.4.0(8y ago)28656.0k↓21.4%12[1 PRs](https://github.com/samrap/acf-fluent/pulls)4MITPHPPHP &gt;=7.0

Since Feb 16Pushed 3y ago11 watchersCompare

[ Source](https://github.com/samrap/acf-fluent)[ Packagist](https://packagist.org/packages/samrap/acf-fluent)[ RSS](/packages/samrap-acf-fluent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (12)Used By (4)

[![](https://camo.githubusercontent.com/984e83072b1567627b05f57367b6399a8c60ba65d9214a54e7cac465e3712e6f/687474703a2f2f692e696d6775722e636f6d2f6e7258746331652e706e67)](https://camo.githubusercontent.com/984e83072b1567627b05f57367b6399a8c60ba65d9214a54e7cac465e3712e6f/687474703a2f2f692e696d6775722e636f6d2f6e7258746331652e706e67)

[![Build Status](https://camo.githubusercontent.com/2315114fb8ef19ca70ac23e88987033b7a2ef33a33cb6e3e77e9ac407fa4b88e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73616d7261702f6163662d666c75656e742f6d61737465722e7376673f7374796c653d666c61742d737175617265)](#)[![Code Quality](https://camo.githubusercontent.com/b6df9827379c228d9235c43ed926d5878dbe6ed9ffb53dbc39d0de2f9ff1cc53/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f73616d7261702f6163662d666c75656e742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/samrap/acf-fluent/?branch=master)[![Packagist Version](https://camo.githubusercontent.com/27d9346c48e0f558bb27c3c39809c8d957a3e60a3dffddacde5249aae31f40f9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73616d7261702f6163662d666c75656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/samrap/acf-fluent)[![MIT License](https://camo.githubusercontent.com/10ea0415717a19172ff3adddba528b4493844e6082822f6d0cdff5d25ee2e825/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f73616d7261702f6163662d666c75656e742e7376673f7374796c653d666c61742d737175617265)](#)

**Are you using ACF Fluent?**

ACF Fluent is almost at 8000 downloads, which I think is pretty cool! I mean, it's not *a ton* of downloads, but cool nonetheless. If you're using it, I would love to hear your feedback. [Shoot me an email](mailto:me@samrapdev.com) and let me know what kind of projects you've used it on :). While I'm not working on it actively at this time, I'm still happy to maintain it.

### What is ACF Fluent?

[](#what-is-acf-fluent)

ACF Fluent is a [fluent interface](https://en.wikipedia.org/wiki/Fluent_interface) for the Advanced Custom Fields WordPress plugin. It enables theme developers to create custom field "queries" using an expressive, fluent interface that makes templating with ACF a breeze.

### Why?

[](#why)

If you make heavy use of Advanced Custom Fields in your WordPress templates (you should), then you probably find yourself writing a lot of repetitive code just to print out your fields. For example, you might have a `heading` field for your page's hero section:

```
