Download the PHP package tombroucke/acf-objects without Composer
On this page you can find all versions of the php package tombroucke/acf-objects. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download tombroucke/acf-objects
More information about tombroucke/acf-objects
Files in tombroucke/acf-objects
Download tombroucke/acf-objects
More information about tombroucke/acf-objects
Files in tombroucke/acf-objects
Vendor tombroucke
Package acf-objects
Short Description Make ACF's get_field return objects with easy-to-use methods
License MIT
Package acf-objects
Short Description Make ACF's get_field return objects with easy-to-use methods
License MIT
Please rate this library. Is it a good library?
Informations about the package acf-objects
ACF Objects
Installation
Usage
-
In sage 10, Acorn should be able to locate src/AcfObjectsServiceProvider.php. If it doesn't, you should add this provider to the providers array in /config/app.php:
- To use this library without Acorn, use this snippet:
Examples
Wherever you want to use ACF Objects, import the Otomaties\AcfObjects\Acf class:
Test if field has value
Fields with array access (Gallery, Repeater, Flexible Content)
Datepicker
File
Gallery
Gallery array access
Google maps
Group
Image
Image tag
Image tag with attributes, wrapped with link
Image with default image from media library, media ID 48
Image with default image from url
Link
Repeater
Repeater array access
Text
Text from other post
ACF Fluent
During development of this package, I stumbled upon ACF Fluent by samrap, which works great. The biggest difference between ACF Fluent and this package, is the ability to easily display images: and a more intuitive way to iterate over repeater & gallery fields.
All versions of acf-objects with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8
The package tombroucke/acf-objects contains the following files
Loading the files please wait ....