piggly/php-form-fields

A library to easily create form fields.

dev-dev 2023-03-28 22:48 UTC

This package is auto-updated.

Last update: 2024-11-29 02:21:38 UTC


README

Current Branch Latest Version on Packagist Software License PHP

The PHP Form Field (for WordPress) is a versatile and intuitive PHP library that empowers developers to quickly and easily render HTML form fields using object-oriented programming.

Developed with the goal of enhancing the configuration screens of WordPress plugins, this library provides a wide range of powerful form field types designed to work seamlessly with the pgly-wps-settings javascript/css library.

Released under the permissive MIT license, php-form-fields is the perfect boilerplate for any developer seeking to optimize their workflow. With PHPUnit-powered unit tests and a simple, dependable interface, php-form-fields is the ultimate choice for anyone looking to streamline their development process.

⚠️ Please be advised that while php-form-fields is a powerful and versatile library, it is still in the experimental stage and may undergo unexpected changes. We are continually working to optimize and improve the library, and a stable release will be made available in the near future. In the meantime, we encourage you to explore the library and offer any feedback or suggestions you may have. Together, we can make php-form-fields the ultimate tool for streamlined development.

Installation

Composer

The recommended way to install php-form-fields is through Composer. Run the following command in your terminal:

composer require piggly/php-form-fields

Don't forget to add Composer's autoload file at your code base require_once('vendor/autoload.php);.

Manual installation

You can also install php-form-fields manually by downloading the latest release from the GitHub repository and including the library files in your project.

  1. Download the release version or clone with repository with git clone https://github.com/piggly-dev/php-form-fields.git;
  2. After, goes to folder you have downloaded cd /path/to/piggly/php-form-fields;
  3. Install all Composer's dependencies with composer install;
  4. Add project's autoload file at your code base require_once('/path/to/piggly/php-form-fields/vendor/autoload.php);.

Dependencies

The library has the following external dependencies:

  • PHP 7.2+.

Changelog

See the CHANGELOG file for information about all code changes.

Testing the code

This library uses the PHPUnit. We carry out tests of all the main classes of this application. To run the tests, run the following command in your terminal from the root directory of the library:

vendor/bin/phpunit

You must always run tests with PHP 7.2 and greater.

Contributions

See the CONTRIBUTING file for information before submitting your contribution.

Credits

Support the project

Piggly Studio is an agency located in Rio de Janeiro, Brazil. If you like this library and want to support this job, be free to donate any value to BTC wallet 3DNssbspq7dURaVQH6yBoYwW3PhsNs8dnK ❤.

License

MIT License (MIT). See LICENSE.