Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bukashk0zzz/timestamptypebundle
A simple Symfony2/Symfony3 bundle that adds timestamp form field type.
https://github.com/bukashk0zzz/timestamptypebundle
bundle php symfony symfony-bundle symfony3-bundle
Last synced: about 1 month ago
JSON representation
A simple Symfony2/Symfony3 bundle that adds timestamp form field type.
- Host: GitHub
- URL: https://github.com/bukashk0zzz/timestamptypebundle
- Owner: Bukashk0zzz
- License: mit
- Created: 2016-02-12T13:09:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-04-04T14:42:57.000Z (8 months ago)
- Last Synced: 2024-10-13T06:58:36.080Z (about 1 month ago)
- Topics: bundle, php, symfony, symfony-bundle, symfony3-bundle
- Language: PHP
- Homepage:
- Size: 35.2 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Symfony TimestampType Bundle
[![Build Status](https://img.shields.io/scrutinizer/build/g/Bukashk0zzz/TimestampTypeBundle.svg?style=flat-square)](https://travis-ci.org/Bukashk0zzz/TimestampTypeBundle)
[![Code Coverage](https://img.shields.io/codecov/c/github/Bukashk0zzz/TimestampTypeBundle.svg?style=flat-square)](https://codecov.io/github/Bukashk0zzz/TimestampTypeBundle)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/Bukashk0zzz/TimestampTypeBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/Bukashk0zzz/TimestampTypeBundle/?branch=master)
[![License](https://img.shields.io/packagist/l/Bukashk0zzz/timestamptype-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/timestamptype-bundle)
[![Latest Stable Version](https://img.shields.io/packagist/v/Bukashk0zzz/timestamptype-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/timestamptype-bundle)
[![Total Downloads](https://img.shields.io/packagist/dt/Bukashk0zzz/timestamptype-bundle.svg?style=flat-square)](https://packagist.org/packages/Bukashk0zzz/timestamptype-bundle)About
-----A simple Symfony bundle that adds timestamp form field type.
Installation
------------Add this to your `composer.json` file:
```json
"require": {
"bukashk0zzz/timestamptype-bundle": "^2.0",
}
```Add the bundle to `app/AppKernel.php`
```php
$bundles = array(
// ... other bundles
new Bukashk0zzz\TimestampTypeBundle\Bukashk0zzzTimestampTypeBundle(),
);
```Configuration
-------------Not needed.
Usage
-----Inside a FormType:
```php
class AccountProfileType extends AbstractType
{
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add('nameFirst', TextType::class, ['label' => 'First Name'])
->add('nameLast', TextType::class, ['label' => 'Last Name'])
->add('startWorking', TimestampType::class, [
'label' => 'Start working from',
'required' => false,
])
;
}
}
```Copyright / License
-------------------See [LICENSE](https://github.com/bukashk0zzz/TimestampTypeBundle/blob/master/LICENSE)