PHPackages                             flsouto/htbutton - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. flsouto/htbutton

ActiveLibrary

flsouto/htbutton
================

Class for generating form buttons

1.0.0(9y ago)059PHP

Since Jan 23Pushed 9y agoCompare

[ Source](https://github.com/flsouto/htbutton)[ Packagist](https://packagist.org/packages/flsouto/htbutton)[ RSS](/packages/flsouto-htbutton/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

HtButton
========

[](#htbutton)

Overview
--------

[](#overview)

This class allows you to easily create html form buttons in an object oriented way and comes with the following features:

- Setting attributes and styles with ease
- Shortcut for inline/block layout
- Checking for form submission

**Notice:** this class extends an abstract class called `HtField`. The inherited functionality will not be covered here. So, if you find difficulty in understanding something, please refer to [this](https://github.com/flsouto/htfield) documentation.

Installation
------------

[](#installation)

Use composer:

```
composer require flsouto/htbutton

```

Usage
-----

[](#usage)

The below code simply creates and renders a button named "action". Notice that by default the button's label is its own name with the first letter in upper case:

```
