This website collects cookies to deliver better user experience
Base field class for form generator
Base field class for form generator
Intro
This class will help you to construct forms in PHP code.
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:
publicfunctionhtml():string
Method returns title for the field:
publicfunctiongetTitle():string
Method returns true if the field is required, false otherwise:
publicfunctionisRequired():bool
Method returns true if the field is visible and false otherwise:
publicfunctionisVisible():bool
Method returns true if the field has label, false otherwise:
publicfunctionhasLabel():bool
Method returns true if the field fills the whole row in the form, false otherwise:
publicfunctionfillAllRow():bool
It will be great if you will contribute something to this project. Documentation, sharing the project in your social media, bug fixing, refactoring, or even submitting issue with question or feature request. Thanks anyway )