2017 © Pedro Peláez
 

library acf-fluent

A fluent interface for the Advanced Custom Fields WordPress plugin

image

samrap/acf-fluent

A fluent interface for the Advanced Custom Fields WordPress plugin

  • Wednesday, August 1, 2018
  • by samrap
  • Repository
  • 10 Watchers
  • 144 Stars
  • 3,095 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 12 Versions
  • 11 % Grown

The README.md

, (*1)

Build Status Code Quality Packagist Version MIT License , (*2)

Are you using ACF Fluent?, (*3)

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 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., (*4)

What is ACF Fluent?

ACF Fluent is a 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., (*5)

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:, (*6)





= $heading ?>

As you know, this type of template coding will clutter up your template files quickly, turning your well-structured HTML into a mess of PHP tags and blocks. The worst part is, you'll find yourself not only in a clutter of PHP logic, but repeating the same logic over and over!, (*7)

ACF Fluent aims to minimize the mess with a fluent builder that lets you easily get and update fields and sub fields and add constraints along the way. Let's take a look at the same functionality above, using ACF Fluent:, (*8)

default(get_the_title())
                ->escape()
                ->get();

?>



= $heading ?>

Interested? ACF Fluent packs a lot more features and has no dependencies. Check out the docs see all of the awesome features., (*9)

Documentation

Contributing

ACF Fluent is still in its early stages. Issues, PRs, and enhancement ideas are encouraged and appreciated., (*10)


Tweeter Built by @thesamrapaport, samrapaport.com, (*11)

The ACF logo is owned by Elliot Condon and the Advanced Custom Fields Plugin, (*12)

The Versions

01/08 2018

dev-master

9999999-dev

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

01/02 2018

v0.4.0

0.4.0.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

01/02 2018

0.4.x-dev

0.4.9999999.9999999-dev

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

13/06 2017

dev-dev

dev-dev

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

27/04 2017

v0.3.1

0.3.1.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

27/04 2017

v0.3.0

0.3.0.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

10/04 2017

v0.2.1

0.2.1.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

10/03 2017

v0.2.0

0.2.0.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

27/02 2017

v0.1.3

0.1.3.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

16/02 2017

v0.1.2

0.1.2.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

16/02 2017

v0.1.1

0.1.1.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent

16/02 2017

v0.1.0

0.1.0.0

A fluent interface for the Advanced Custom Fields WordPress plugin

  Sources   Download

MIT

The Requires

  • php >=7.0

 

The Development Requires

by Sam Rapaport

wordpress helper wrapper interface acf fluent