Download the PHP package cethyworks/time-select without Composer
On this page you can find all versions of the php package cethyworks/time-select. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download cethyworks/time-select
More information about cethyworks/time-select
Files in cethyworks/time-select
Download cethyworks/time-select
More information about cethyworks/time-select
Files in cethyworks/time-select
Vendor cethyworks
Package time-select
Short Description Provides a SelectType containing a selection of possible time values, from 00:00 to 23:45.
License MIT
Package time-select
Short Description Provides a SelectType containing a selection of possible time values, from 00:00 to 23:45.
License MIT
Please rate this library. Is it a good library?
Informations about the package time-select
Cethyworks\TimeSelect
Provides a SelectType containing a selection of possible time values, from 00:00 to 23:45 (with a default 15 minutes step).
How to use
namespace ExampleBundle\Form;
use Cethyworks\TimeSelect\Form\TimeSelectType;
class ExampleType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('exampleTime', TimeSelectType::class)
// ...
;
}
// ...
}
Options
Change the input' starting value
Overrides the choices array :
// ...
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('exampleTime', TimeSelectType::class, [
'choices' => TimeSelectType::generateChoices(8, 45, 5, 2),
)
// ...
;
}
// ...
In this example, the input will start at 8:45 (and end at 8:30), with a 5 minutes step and a 2 hours step.
All versions of time-select with dependencies
PHP Build Version
Package Version
The package cethyworks/time-select contains the following files
Loading the files please wait ...