Download the PHP package micropackage/acf-block-creator without Composer

On this page you can find all versions of the php package micropackage/acf-block-creator. 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-block-creator

ACF Block Creator

BracketSpace Micropackage Latest Stable Version PHP from Packagist Total Downloads License

Micropackage logo

🧬 About ACF Block Creator

This package simplifies block creation for Gutengberg editor in WordPress using Advanced Custom Fields plugin. It extends functonality of Block Loader package and is intended to use alongside it.

This package will automatically create a block template file with basic markup for ACF fields while creating a field group for a block.

💾 Installation

🕹 Usage

Before you can start creating blocks this package needs to be initialized:

Only thing to do is to create new ACF field group which name starts with "Block:". It will automatically create a block template file and set the field group location to this created block.

Block params (block name, slug, category etc.) can be adjusted using additional fields at the bottom of field group creation form.

Silent initialization

Since this is a development package and is not useful in production environment we probably don't want it's initialization code in the production package of our theme. That's why this package will be automatically initialized by Block Loader if both packages will be present.

So if we will add this as dev dependency and then run composer install --no-dev this package will not be present and just won't get loaded by BlockLoader.

All configuration params of this package can be then passed directly to BlockLoader::init method.

Also blocks_dir param will not be necessary since it will automatically get the value of dir param for BlockLoader. If you configure a custom category it will also be automatically used as default category for new blocks.

⚙️ Configuration

All parameters are optional.

Parameter Type Description
blocks_dir (string) Directory inside the theme for block templates.
Default: 'blocks'
scss_dir (false|string) Directory inside the theme for block sass styles file.
If set, the empty scss file will be created for each block in this directory.
Default: false
default_category (string) Default category for new blocks.
Default: 'common'
block_container_class (string) Optional class for wrapping <div> element inside the block template.
Default: 'block-inner'
package (bool|string) String containing package name for file block comment. If set to true, WordPress site name will be used. If false, no @package comment will be added.
Default: true
license (false|string) String containing license name for file block comment. If set to false no @license comment will be added.
Default: 'GPL-3.0-or-later'

📦 About the Micropackage project

Micropackages - as the name suggests - are micro packages with a tiny bit of reusable code, helpful particularly in WordPress development.

The aim is to have multiple packages which can be put together to create something bigger by defining only the structure.

Micropackages are maintained by BracketSpace.

📖 Changelog

See the changelog file.

📃 License

GNU General Public License (GPL) v3.0. See the LICENSE file for more information.


All versions of acf-block-creator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
micropackage/singleton Version ^1.1
micropackage/dochooks Version ^1.0
micropackage/filesystem Version ^1.0
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 micropackage/acf-block-creator contains the following files

Loading the files please wait ....