Download the PHP package j1b1x/forms without Composer

On this page you can find all versions of the php package j1b1x/forms. 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 forms

Forms

php api

GitHub all releases

This is a PocketMine-MP 5.0 form library with PHP 8.0 support and high quality code

Credits

This API is a spoon of Frago's forms library and also includes a ServerSettingsForm which is inspired of skymin's ServerSettingsForm virion and a FormImagesFix plugin.

Code samples

Registration

In order to use the auto-back feature you first need to register the packet handler by doing

Note: You only need to do this if you use this plugin as a virion, otherwise it's handled by the Main class

Auto-back

Auto-back is a feature that sends the previous opened form to the player once they close a form or click on a back button. It also overwrites back buttons in a MenuForm with close buttons if there's no form to go back to If you want to use the auto-back feature, you just need to do

Image fix

Image fix is a workaround for a MCPE MenuForm bug, where url button images take ages to load To make this work you only need to do the registration

ServerSettingsForm

The ServerSettingsForm is similar to a CustomForm and has the same elements, but will be displayed in the player's game-settings ui Once you have registered the packet handler, you can just use the ServerSettingsFormEvent

ModalForm

Using ModalForm to represent "yes" / "no" button clicks as bool in closure

Short version of ModalForm to confirm any action

MenuForm

Using MenuForm to display buttons with icons from URL and path

Shorther/simpler MenuForm, you can directly set the button's onSubmit callback, which can be useful if you have object foreaches

CustomForm

Using CustomForm with strict-typed API

Using CustomForm with less strict-typed API

Using CustomForms elements with directly setting their onSubmit callback

From/to Data CustomForm. This can be useful if you want to send the same ui again, but with some changes, such as an error message label

Uncloseable form

An uncloseable form can be useful if you permanently want to display something to the player


All versions of forms with dependencies

PHP Build Version
Package Version
Requires pocketmine/pocketmine-mp Version ^5.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 j1b1x/forms contains the following files

Loading the files please wait ....