Download the PHP package headlesslaravel/fields without Composer

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

Fields

Latest Version on Packagist [GitHub Tests Action Status](

A Laravel package that simplifies the process of formatting fields for display and forms in your Inertia.js projects. With this package, you can easily define Vue components, and populate data when needed. This package is particularly useful for developers working with Laravel, Inertia.js, and Vue.js.

Table of Contents

Installation

To install the Laravel Inertia Field Formatter package, you can use Composer:

Usage

After installing the package, you can use the Fields class to create form and display field configurations. These configurations can be used to define Vue components and populate data when necessary.

To create a form field configuration, you can use the Fields::form() method:

To create a display field configuration, you can use the Fields::display() method:

Both methods accept an array of field configurations. You can create field configurations using the Text::make() method. The first parameter is the label for the field, and the second parameter is an optional key that will be used to populate data for display fields.

You can also chain additional properties to the field configuration, like setting the span property for the grid system:

Examples

Here is a more generic example of using the Laravel Inertia Field Formatter package:

Available Fields

Field Description
Checkbox A field representing a checkbox input, allowing for boolean values.
Count A field representing a counter, displaying the number of items in a collection.
Divider A field used to add a visual divider or separator between other fields in a form or display.
Field The base field class from which all other field classes inherit.
Fields A class responsible for creating and managing form and display field configurations.
Items A field representing a list of items, useful for displaying collections or arrays of data.
Link A field representing a hyperlink, allowing navigation to other pages or resources.
Money A field representing a monetary value, formatted according to the specified currency and locale.
Number A field representing a numeric input, allowing for integer or decimal values.
Panel A container for organizing and grouping related fields within a form or display.
Picker A field representing a picker input, allowing users to select an option from a list (e.g. date picker).
Repeat A field allowing the user to input a set of repeating values, useful for creating dynamic forms.
Section A container for organizing and grouping related fields within a form or display, with a title.
Select A field representing a dropdown select input, allowing users to choose one or multiple options.
Text A field representing a text input, allowing for single-line text values.
Textarea A field representing a textarea input, allowing for multi-line text values.
Timestamp A field representing a timestamp, displaying a formatted date and time based on a specified format.

Contributing

Contributions are welcome! If you find a bug or have a suggestion, please open an issue on the GitHub repository. If you'd like to contribute code, please submit a pull request.

License

This package is released under the MIT License.


All versions of fields with dependencies

PHP Build Version
Package Version
Requires illuminate/support Version ^10.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 headlesslaravel/fields contains the following files

Loading the files please wait ...