Download the PHP package devidw/acf-helper without Composer

On this page you can find all versions of the php package devidw/acf-helper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package acf-helper

= ACF Helper

A set of PHP classes and methods to assist with ACF. Enables a straight forward way of working with ACF fields by providing a simple, clean and self describing intererface.

All methods are static and can be called directly from the class name from anywhere in the code.

The libary adds functionality to get the visibility state of a field and also provides a way to get the completeness amount of all fields in a field group based on the visibility state and the amount of filled fields by the user.

== Installation

Install the libary using Composer:

[source,zsh]

composer require devidw/acf-helper

== Comparison

|=== | ACF Helper | ACF

a| [source,php]

Field::setKey('field_xxxxx')::get();

a| [source,php]

get_field_object('field_xxxxx');

a| [source,php]

Field::setKey('field_xxxxx')::get('label');

a| [source,php]

get_field_object('field_xxxxx')['label'];

a| [source,php]

Field::setKey('field_xxxxx')::setUserId(2458)::getValue();

a| [source,php]

get_field('field_xxxxx', 'user_2458');

|===

== Usage Examples

=== Get full field name

Gets the full field name of a field. Fields nested in fields like repeater, group or flexible content fields will also be returned as full field names.

With ACF you can only get the direct name of a field. This method allows you to get the full field name.

Let's say you have a group of test_group_field and a sub field of test_sub_field in the group. Using the getName() method you can get the full field name of the sub field: test_group_field_test_sub_field.

[source,php]

<?php

require_once DIR . '/vendor/autoload.php';

use Devidw\ACF\Field\Field;

$fieldName = Field::setKey('field_xxxxx')::getName();

dump($fieldName);

Credits to https://wordpress.stackexchange.com/users/13418/adam[Adam] for the https://wordpress.stackexchange.com/a/401663/218274[StackOverflow answer].

== Documentation

Documentation is available at https://devidw.github.io/acf-helper/api/


All versions of acf-helper with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devidw/acf-helper contains the following files

Loading the files please wait ....