semantic-form
Semantic Form is a Laravel package designed to simplify the creation of HTML forms styled with the Semantic UI CSS framework. It provides both a Facade and a helper function for flexible integration, allowing developers to generate forms with various HTTP methods including GET, POST, PUT, PATCH, and DELETE. The library supports automatic CSRF token generation for POST requests, which can be disabled if needed. It offers a comprehensive set of input builders for standard fields such as text, number, email, password, and date. Specialized components include a currency-specific Rupiah input, select boxes with options for dropping in placeholders or prepending/appending items, and complex date and time selectors that can be processed via included middleware to format output as standard strings. The package also handles grouped controls like radio buttons and checkboxes, providing methods to define groups and default selected values. Its fluent API enables concise code, allowing actions, routes, and URLs to be cha