Download the PHP package morrislaptop/advanced-custom-fields-wpcli without Composer

On this page you can find all versions of the php package morrislaptop/advanced-custom-fields-wpcli. 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 advanced-custom-fields-wpcli

WP-CLI for Advanced Custom Fields

Description

WP-CLI for Advanced Custom Fields helps you manage your field-groups through WP-CLI. The reason we started this project is to make life easier for developers working on Wordpress projects using the Advanced Custom Fields Pro plugin. Fields can now easily be imported, exported and shared over SVN, GIT or comparable systems.

Installation

Requirements

How to install

Install WP-CLI as described on http://wp-cli.org/

Using composer: (doesn't work for now until we have released the plugin on wordpress.org/plugins)

By GIT clone in plugins directory:

WordPress plugin installation: Download zip and put the files in the plugins directory.

Go the wordpress directory in your terminal and run:

To see if everything is working correctly.

When the plugin is enabled, any exported field groups found on the filesystem in your registered paths will be added to Wordpress at runtime. If you would like to disable this behaviour you can remove the acf_wpcli_register_groups action:

Commands

This project adds the acf command to wp-cli with the following subcommands:

Help

Prints the help overview and can be used as a default test to see if the plugin is working.

Export

Export a field-group to a json file in the directory set by a filter.

For testing purposes, etc. you can also define a export directory explicitly without applying the filter by using the --export_path parameter.

You want to export all field-groups all at once you can use:

Import

Import all or specific fields from a option menu,

Clean

Delete all Advanced Custom Fields Records from the database. Do this after you have edited fields-groups from the UI and exported the changes. Warning: This can not be undone, please use carefully

Filters

acfwpcli_fieldgroup_paths

The acfwpcli_fieldgroup_paths gives you the ability to add more paths where ACF-CLI should load/export from/to. You should always add at least one path to this filter.

`

Unit testing

To test changes to the plugin you can use unit testing. Start by making sure all the necessary dependencies are installed, if not run:

You will need a new Wordpress installation to make sure the tests run independent from your Wordpress installation and database. To create a wordpress installation for testing run the following command:

Where 'wordpress_test' is the name for the database used to run the tests. Make sure this database doesn't exist or can be deleted. When the database already exists the script will ask you if the database can be deleted. 'Latest' can be changed if you want to test with a specific version of Wordpress, 3.6.2 for example.

After you installed you can start running tests using the follow command:

This will run all test. These tests include an import and export of all types of fields, cleaning, multiple fields in one field-group and tests for the menu options. If you want to run one specific test you can do this by running:

If you need a different test you can create your own by added it to the features in the features folder.

Upgrade Notice

3.0

Changelog

3.0

2.0


All versions of advanced-custom-fields-wpcli 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 morrislaptop/advanced-custom-fields-wpcli contains the following files

Loading the files please wait ....