Download the PHP package refaltor/easy-ui-builder without Composer

On this page you can find all versions of the php package refaltor/easy-ui-builder. 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 easy-ui-builder

EasyUIBuilder v2.0.0

PHP 8.0+ Version License

A PHP library for generating Minecraft Bedrock Edition JSON UI files using a fluent builder pattern. Build complex UI screens with clean, readable code — and output Minecraft-compatible resource packs automatically.


Features


Installation

Requirements: PHP 8.0 or higher

Via Composer

Manual

Clone the repository and include the autoloader:


Quick Start


UI Elements

Core Elements

Element Description
Label Text with font size/type/scale, shadow, color
Panel Container with visibility, alpha, clipping, scissor
Button Interactive button with 4-state textures, factory system
Image Texture with UV, 9-slice, tiling, clip, grayscale
Grid Dynamic grid layout with templates and fill direction
StackPanel Auto-layout container (vertical/horizontal)

Extended Elements

Element Description
Toggle Checkbox/switch with radio groups, checked/unchecked controls
Slider Value cursor with steps, direction, box/track controls
EditBox Text input with placeholder, max length, text types
ScrollView Scrollable container (vertical/horizontal)
Dropdown Dropdown menu with items
InputPanel Input handling with focus navigation, button mappings, modal
Screen Screen root element with render flags, input absorption
CustomRender Native renderers (paper_doll, inventory_item, panorama...)

Utility Elements

Element Description
CloseButton Pre-built close button extending Bedrock's common dialog
PlayerRender Pre-built player skin viewer

Component Systems

Component Description
Binding Data bindings (global, view, collection, visibility)
Animation UI animations with 30+ easings and chaining
Variable Conditional variables for adaptive layouts
Modification Non-intrusive edits to vanilla UI (insert, remove, replace, swap, move)

Modifications System (v2.0)

The modifications system lets you edit vanilla Bedrock UI elements without replacing entire files. This improves compatibility across resource packs.

All Operations

Operation Description
insert_back Insert at end of array
insert_front Insert at start of array
insert_after Insert after a target element
insert_before Insert before a target element
move_back Move target to end of array
move_front Move target to start of array
move_after Move target after another element
move_before Move target before another element
swap Swap two elements
replace Replace an element
remove Remove an element

Element-Level Modifications

Add modifications directly to any element:

Vanilla Element Modifications

Target vanilla UI elements using path syntax on the Root builder:

Available Target Arrays

Use the constants for array_name:

Constant Value
Modification::ARRAY_CONTROLS controls
Modification::ARRAY_BINDINGS bindings
Modification::ARRAY_VARIABLES variables
Modification::ARRAY_ANIMS anims
Modification::ARRAY_BUTTON_MAPPINGS button_mappings

JSON Validation (v2.0)

Generated JSON files are automatically validated against Bedrock UI rules before writing. The validator checks:

Configuration

Standalone Usage


RootBuild System

To create a new UI screen, implement the RootBuild interface:

Register it in Entry.php and run php start.php to generate all JSON files.


Examples

The tests/ directory contains complete examples for every feature:

File Description
LabelExample.php Font sizes, types, colors, shadows, scaling
PanelExample.php Nested panels, background images, alpha, clipping
ButtonExample.php Custom textures, visibility conditions, factory
ImageExample.php Tiling, nineslice, UV mapping, grayscale, fill
GridExample.php Grid dimensions, item templates, fill direction
StackPanelExample.php Vertical and horizontal layouts
FullMenuExample.php Complete game menu combining all elements
ColorExample.php All BasicColor functions
ToggleExample.php Toggle, radio groups, checked/unchecked controls
SliderExample.php Horizontal/vertical sliders, steps, controls
EditBoxExample.php Text/number input, placeholder, locked fields
ScrollViewExample.php Vertical/horizontal scroll, chat jump-to-bottom
DropdownExample.php Gamemode, difficulty, language dropdowns
InputPanelExample.php Modal dialog, focus nav, gesture tracking
ScreenExample.php Modal/HUD/cached screens, close on hurt
CustomRenderExample.php Paper doll, item renderer, gradient, vignette
BindingExample.php Global, view, collection bindings, visibility
AnimationExample.php Fade, slide, pulse, bounce, elastic, chain, clip
VariableExample.php Platform, input-mode, screen-size conditionals
ModificationExample.php All modification operations, vanilla element targeting

Running

Generated files are output to resources/pack_example/:

Validation results are displayed during generation:


Changelog

v2.0.0

v1.1.0

v1.0.0


Wiki

For full API documentation: https://github.com/Refaltor77/EasyUIBuilder/wiki


All versions of easy-ui-builder with dependencies

PHP Build Version
Package Version
Requires php Version >=8.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 refaltor/easy-ui-builder contains the following files

Loading the files please wait ...