All Projects → samrap → Acf Fluent

samrap / Acf Fluent

Licence: mit
✒️ A fluent interface for the Advanced Custom Fields WordPress plugin

Projects that are alternatives of or similar to Acf Fluent

Acf To Rest Api
Exposes Advanced Custom Fields Endpoints in the WordPress REST API
Stars: ✭ 1,152 (+336.36%)
Mutual labels:  wordpress, acf
Acf Codifier
A wrapper class to help write more readable ACF field declarations.
Stars: ✭ 114 (-56.82%)
Mutual labels:  wordpress, acf
Acf Star Rating Field
A simple star rating field for ACF.
Stars: ✭ 94 (-64.39%)
Mutual labels:  wordpress, acf
Acf Builder
An Advanced Custom Field Configuration Builder
Stars: ✭ 492 (+86.36%)
Mutual labels:  wordpress, acf
Acf Extended
ACF Extended Plugin
Stars: ✭ 199 (-24.62%)
Mutual labels:  wordpress, acf
Wp Vuejs
WordPress VueJS Starter Theme
Stars: ✭ 19 (-92.8%)
Mutual labels:  wordpress, acf
Plate
Plate: a super stripped-down WordPress starter theme for developers.
Stars: ✭ 110 (-58.33%)
Mutual labels:  wordpress, acf
Fewbricks
Write code to create ACF field groups, fields and re-usable modules.
Stars: ✭ 100 (-62.12%)
Mutual labels:  wordpress, acf
Private Composer Installer
Composer install helper outsourcing sensitive keys from the package URL into environment variables
Stars: ✭ 168 (-36.36%)
Mutual labels:  wordpress, acf
React Wp Rest
A boilerplate for pairing the WP Rest API with a server-rendered React app
Stars: ✭ 167 (-36.74%)
Mutual labels:  wordpress, acf
Flynt
Component based WordPress starter theme, powered by ACF Pro and Timber, optimized for a11y and fast page load results.
Stars: ✭ 363 (+37.5%)
Mutual labels:  wordpress, acf
fluentcheck
Fluent assertions for Python
Stars: ✭ 79 (-70.08%)
Mutual labels:  fluent-interface, fluent
Acf Pro Installer
A composer install helper for Advanced Custom Fields PRO
Stars: ✭ 265 (+0.38%)
Mutual labels:  wordpress, acf
Advanced Forms
WordPress plugin to create forms using Advanced Custom Fields
Stars: ✭ 61 (-76.89%)
Mutual labels:  wordpress, acf
Acf Tools
Advanced Custom Fields code made simple! 🙌
Stars: ✭ 121 (-54.17%)
Mutual labels:  wordpress, acf
Extended Acf
Register advanced custom fields with object oriented PHP
Stars: ✭ 212 (-19.7%)
Mutual labels:  wordpress, acf
php-underscore
PHP underscore inspired &/or cloned from _.js, with extra goodies like higher order messaging
Stars: ✭ 42 (-84.09%)
Mutual labels:  fluent-interface, fluent
Fluent-Discord
Currently in-development Fluent Discord theme.
Stars: ✭ 22 (-91.67%)
Mutual labels:  fluent
Papi
🚀 WordPress Page Type API with custom fields
Stars: ✭ 258 (-2.27%)
Mutual labels:  wordpress
Smart-Inspector
Fluent re-take on Unity Inspector UX. Packed with QoL improvements.
Stars: ✭ 680 (+157.58%)
Mutual labels:  fluent

Build Status Code Quality Packagist Version MIT License

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 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?

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.

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:

<?php

$heading = get_field('heading');

if (is_null($heading)) {
    $heading = get_the_title();
} else {
    $heading = esc_html($heading);
}

?>

<h1><?= $heading ?></h1>

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!

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:

<?php

use Samrap\Acf\Acf;

$heading = Acf::field('heading')
                ->default(get_the_title())
                ->escape()
                ->get();

?>

<h1><?= $heading ?></h1>

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

Documentation

Contributing

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


Tweeter Built by @samrapdev

The ACF logo is owned by Elliot Condon and the Advanced Custom Fields Plugin

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].