Download the PHP package morningtrain/wp-acf-helper without Composer

On this page you can find all versions of the php package morningtrain/wp-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 wp-acf-helper

Morningtrain\WP\ACFHelper

Some helpers to standialize Advanced Custom Fields (ACF) use in our projects.

Table of Contents

Introduction

This package is made to standialize the way we are using Advanced Custom Fields (ACF) in our projects.

It makes it easy to handle ACF JSON files, hide ACF administration area and check if ACF is not installed or activated on the site.

Getting Started

To get started install the package as described below in Installation.

To use the package have a look at Usage

Installation

Install with composer.

Usage

Add JSON folder

To add a foldere where ACF should look for JSON field groups

Use JSON folder as save folder

To use the added JSON folder as the folder where ACF use the useAsSaveFolder method on the returned JsonPath object. You can optionally set a namespace, which is used to force saving in specific folder if more than one project sets a save folder.

OBS: ACF will not create the folder, so it shall exist before ACF saves in the folder.

If you will force saving in your folder, define a constant in wp-config.php with the namespace set in useAsSaveFolder.

Hide Administration

To hide aministration from the WP backend.

This will hide ACF from the WP administration.

Hide Administration Except On Specific Environments

You can hide admin except on specific environments defined by WP_ENVIRONMENT_TYPE in wp-config.php.

Possible values are ‘local’, ‘development’, ‘staging’, and ‘production’.

To define the environment add this to wp-config.php

Check if ACF is installed and activated

To check if ACF is activated

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of wp-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 morningtrain/wp-acf-helper contains the following files

Loading the files please wait ....