Modernized PSR-2 boilerplate for creating custom fields for ACF5.
MIT License
This is an ACF Field Type boilerplate to quickly make clean, well structured custom field types.
This is entirely based off of the original acf-field-type-template provided by the creator of ACF.
Make sure all dependencies have been installed before moving on:
Create a project using Composer:
$ composer create-project log1x/acf-field-boilerplate:dev-master my-field
yarn install
from the field directory to install dependencies.Log1x/AcfFieldBoilerplate
with your namespace.src/ExampleField.php
to get started.yarn run build
— Compile and optimize the files in your assets directoryyarn run build:production
— Compile assets for productionIf you discover a bug in ACF Field Boilerplate, please open an issue.
Contributing whether it be through PRs, reporting an issue, or suggesting an idea is encouraged and appreciated.
ACF Field Boilerplate is provided under the MIT License.