-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revamp directory structure Clean up example.php Rewrite README.md
- Loading branch information
Showing
11 changed files
with
6,973 additions
and
222 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,41 @@ | ||
# ACF Field Boilerplate | ||
# ACF Field Boilerplate | ||
[![Packagist](https://img.shields.io/packagist/v/log1x/acf-field-boilerplate.svg?style=flat-square)](https://packagist.org/packages/log1x/acf-field-boilerplate) | ||
[![Packagist Downloads](https://img.shields.io/packagist/dt/log1x/acf-field-boilerplate.svg?style=flat-square)](https://packagist.org/packages/log1x/acf-field-boilerplate) | ||
|
||
This is a work in progress boilerplate for cleaning up and simplifying the creation of custom fields for ACF5. | ||
|
||
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](https://github.com/elliotcondon/acf-field-type-template) provided by the creator of ACF. | ||
|
||
## Features | ||
|
||
* [Laravel Mix](https://laravel.com/docs/5.5/mix) for compiling assets, optimizing images, and concatenating and minifying files | ||
* PSR-2 coding style | ||
* Namespacing | ||
* Cleaner DocBlocks | ||
* Cleaner directory structure | ||
|
||
## Requirements | ||
* PHP >= 7 | ||
* ACF >= 5 | ||
|
||
## Usage | ||
TBA | ||
Make sure all dependencies have been installed before moving on: | ||
|
||
* [ACF](https://www.advancedcustomfields.com/pro/) >= 5.0 | ||
* [PHP](http://php.net/manual/en/install.php) >= 7.0 | ||
* [Composer](https://getcomposer.org/download/) | ||
* [Node.js](http://nodejs.org/) >= 6.9.x | ||
* [Yarn](https://yarnpkg.com/en/docs/install) | ||
|
||
## Boilerplate installation | ||
Install ACF Field Boilerplate using Composer: | ||
|
||
``` | ||
$ composer create-project log1x/acf-field-boilerplate:dev-master | ||
``` | ||
## Field development | ||
* Run `yarn` from the boilerplate directory to install dependencies | ||
|
||
### Build commands | ||
|
||
* `yarn run build` — Compile and optimize the files in your assets directory | ||
* `yarn run build:production` — Compile assets for production | ||
|
||
After you have your project created, simply go through and change the namespace to your field name and use the provided `example.php` to quickly get started. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.