mindfire / expiryfieldbundle
A Symfony2 Custom field type with month and year selectors which is useful for applications reading Expiry Month and Year inputs such as Credit Card Expiration
Installs: 434
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 2
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.3.2
- doctrine/doctrine-bundle: *
- symfony/form: ~2.0|~3.0
- symfony/framework-bundle: ~2.0|~3.0
- symfony/yaml: ~2.1|~3.0
- twig/twig: ~1.5
This package is not auto-updated.
Last update: 2024-11-18 16:26:00 UTC
README
A Symfony2 Custom field type with month and year selectors which is useful for applications reading Expiry Month and Year inputs such as Credit Card Expiration.
Usage
In composer.json, add the repository and the bundle.
"require": {
"mindfire/expiryfieldbundle": "*"
}
Register the bundle in AppKernel.php
new Mindfire\Bundle\ExpiryFieldBundle\MindfireExpiryFieldBundle(),
Add the parameter to specify the object manager:(Default value is doctrine.orm.entity_manager
)
expiry.object_manager_id: doctrine_mongodb.odm.document_manager
In your form type,
$builder->add('ccExpiration', 'expiry');
License
This bundle is available under the MIT license.