Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/yii-extension/simple-forms

Simple Forms for PHP.
https://github.com/yii-extension/simple-forms

bootstrap5 bulma forms php tailwind widgets yii2 yii3

Last synced: about 1 month ago
JSON representation

Simple Forms for PHP.

Awesome Lists containing this project

README

        





Simple Forms



[![Total Downloads](https://poser.pugx.org/yii-extension/simple-forms/downloads.png)](https://packagist.org/packages/yii-extension/simple-forms)
[![Build Status](https://github.com/yii-extension/simple-forms/workflows/build/badge.svg)](https://github.com/yii-extension/simple-forms/actions?query=workflow%3Abuild)
[![codecov](https://codecov.io/gh/yii-extension/simple-forms/branch/master/graph/badge.svg?token=SmlJzDGK2T)](https://codecov.io/gh/yii-extension/simple-forms)
[![Mutation testing badge](https://img.shields.io/endpoint?style=flat&url=https://badge-api.stryker-mutator.io/github.com/yii-extension/simple-forms/master)](https://dashboard.stryker-mutator.io/reports/github.com/yii-extension/simple-forms/master)
[![static analysis](https://github.com/yii-extension/simple-forms/workflows/static%20analysis/badge.svg)](https://github.com/yii-extension/simple-forms/actions?query=workflow%3A%22static+analysis%22)
[![type-coverage](https://shepherd.dev/github/yii-extension/simple-forms/coverage.svg)](https://shepherd.dev/github/yii-extension/simple-forms)

## Installation

```shell
composer require yii-extension/simple-forms
```

## Support css framework

- [Bootstrap](https://getbootstrap.com/docs/5.0/forms/overview/)
- [Bulma](https://bulma.io/documentation/form/)
- [Tailwind](https://v1.tailwindcss.com/components/forms)

## Widgets usage

The following documentation describes how to use widgets with PHP:

- [Checkbox](docs/checkbox.md)
- [CheckboxList](docs/checkboxlist.md)
- [Date](docs/date.md)
- [DateTime](docs/datetime.md)
- [DateTimeLocal](docs/datetimelocal.md)
- [Email](docs/email.md)
- [Error](docs/error.md)
- [ErrorSummary](docs/error-summary.md)
- [File](docs/file.md)
- [Hint](docs/hint.md)
- [Label](docs/label.md)
- [Number](docs/number.md)
- [Password](docs/password.md)
- [Radio](docs/radio.md)
- [RadioList](docs/radiolist.md)
- [Range](docs/range.md)
- [ResetButton](docs/resetbutton.md)
- [Select](docs/select.md)
- [SubmitButton](docs/submitbutton.md)
- [Telephone](docs/telephone.md)
- [Text](docs/text.md)
- [Url](docs/url.md)

### Unit testing

The package is tested with [PHPUnit](https://phpunit.de/). To run tests:

```shell
./vendor/bin/phpunit
```

### Mutation testing

The package tests are checked with [Infection](https://infection.github.io/) mutation framework. To run it:

```shell
./vendor/bin/infection
```

## Static analysis

The code is statically analyzed with [Psalm](https://psalm.dev/docs). To run static analysis:

```shell
./vendor/bin/psalm
```

### License

The `yii-extension/simple-forms` is free software. It is released under the terms of the BSD License.
Please see [`LICENSE`](./LICENSE.md) for more information.

Maintained by [Yii Extension](https://github.com/yii-extension).

## Support the project

[![Open Collective](https://img.shields.io/badge/Open%20Collective-sponsor-7eadf1?logo=open%20collective&logoColor=7eadf1&labelColor=555555)](https://opencollective.com/yiisoft)

## Powered by Yii Framework

[![Official website](https://img.shields.io/badge/Powered_by-Yii_Framework-green.svg?style=flat)](https://www.yiiframework.com/)