mezon / field
Field base class for the FormBuilder
Installs: 5 160
Dependents: 3
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 0
Open Issues: 0
Requires
- php: >=7.2.0
Requires (Dev)
- infection/infection: ^0.21.5
- phpunit/phpunit: ^8.5
- vimeo/psalm: ^4.2
This package is auto-updated.
Last update: 2024-11-11 19:36:29 UTC
README
Intro
This class will help you to construct forms in PHP code.
More links
This package relqtes to Mezon Project and Mezon Form Builder.
Installation
Just print in console
composer require mezon/field
And that's all )
Learn more
More information can be found here:
Reference
Method compiles field into HTML code:
public function html(): string
Method returns title for the field:
public function getTitle(): string
Method returns true if the field is required, false otherwise:
public function isRequired(): bool
Method returns true if the field is visible and false otherwise:
public function isVisible(): bool
Method returns true if the field has label, false otherwise:
public function hasLabel(): bool
Method returns true if the field fills the whole row in the form, false otherwise:
public function fillAllRow(): bool
Method returns the type of the field:
public function getType(): string
Method returns name prefix for the field's name:
public function getNamePrefix(): string