Base field class for form generator

Dodonov Alexey
1 min readJun 1, 2021

--

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:

Twitter

dev.to

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

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 )

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response