Download the PHP package eighteen73/block-theme-developer without Composer

On this page you can find all versions of the php package eighteen73/block-theme-developer. 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 block-theme-developer

Block Theme Developer

A developer-focused plugin for developing block themes for WordPress. Essential tools for pattern authoring (via the native Site Editor) and template export.

Features

Part 1: Pattern Management

Part 2: Template Export

Installation

  1. Clone this repository into your WordPress plugins directory
  2. Run npm install to install dependencies
  3. Run npm run build to build the JavaScript assets
  4. Activate the plugin in your WordPress admin

Requires: WordPress 7.0+, PHP 8.3+

Configuration

BLOCK_THEME_DEVELOPER_MODE Constant

Setting the Mode

Option 1: wp-config.php (Recommended)

Option 2: Automatic Detection If not defined:

Usage

File mode — theme patterns

  1. Open Appearance → Editor → Patterns
  2. Create or edit a pattern
  3. Use Pattern Categories (core) and Pattern Details (BTD) in the sidebar
  4. Save (after the pattern has real block content — empty “Add pattern” creates are ignored):
    • Synced (Add Pattern modal or Pattern Details): writes patterns/{slug}.php with Synced: true, keeps the wp_block for Orbit
    • Unsynced: writes the theme file without Synced, keeps the wp_block open in the editor

BTD is not used on production in file mode. Published pattern saves with content export to the theme.

API mode — pattern library

  1. Create patterns in the Site Editor (they remain as wp_block posts)
  2. Fill Pattern Details meta as needed
  3. Other sites consume them via the REST API (see below)

No theme files are written in API mode.

Exporting Templates and Template Parts

In file mode, saving templates from the Site Editor exports to the active stylesheet theme:

When export succeeds, the plugin removes the database override.

Autosaves, revisions, and draft-like states are skipped. Export requires edit_theme_options.

Development Workflow

Typical file-mode workflow

  1. Install BTD as a local/dev dependency (file mode)
  2. Author patterns and templates in the Site Editor
  3. Theme PHP/HTML files update on save — commit them to Git
  4. Production runs the theme (and Orbit for synced patterns) without BTD

Typical API-mode workflow

  1. Run a pattern library site with BTD in api mode
  2. Author patterns in admin as wp_block posts
  3. Client sites pull GET /wp-json/btd/v1/patterns with Application Passwords

File Mode example

API Mode

Get all patterns:

Get authentication information:

Patterns are loaded from published wp_block posts (not a custom post type). Categories prefer the wp_pattern_category taxonomy, with _btd_categories as fallback.

Setting up Application Passwords

  1. Go to Users > Profile
  2. Scroll to Application Passwords
  3. Create a password for your client application
  4. Use HTTP Basic Auth; the user needs the btd_api_access capability

In API mode the plugin creates the btd_api_access capability, an API User role, and grants the capability to administrators.

cURL:

Response format:

Development

Build Process

Coding Standards

This plugin follows the eighteen73 WordPress Coding Standards.


All versions of block-theme-developer 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 eighteen73/block-theme-developer contains the following files

Loading the files please wait ...