2017 © Pedro Peláez
 

symfony-bundle moment-js-bundle

Symfony2 Bundle Moment.js - Parse, validate, manipulate, and display dates in JavaScript

image

stinger/moment-js-bundle

Symfony2 Bundle Moment.js - Parse, validate, manipulate, and display dates in JavaScript

  • Thursday, July 9, 2015
  • by Viburnum
  • Repository
  • 2 Watchers
  • 0 Stars
  • 4,588 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Moment.js Bundle for Symfony2

Moment.js Bundle for Symfony2, (*1)

Current Version

Moment.js v2.10.3, (*2)

Installation

Add bundle to your composer.json file

``` js // composer.json, (*3)

{ "require": { // ... "stinger/momentjs-bundle": "~2.10" } }, (*4)


### Add bundle to your application kernel ``` php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Stinger\MomentJsBundle\StingerMomentJsBundle(), // ... ); }

Download the bundle using Composer

``` bash $ php composer.phar update stinger/momentjs-bundle, (*5)


### Install assets Given your server's public directory is named "web", install the public vendor resources ``` bash $ php app/console assets:install web

Optionally, use the --symlink attribute to create links rather than copies of the resources, (*6)

``` bash $ php app/console assets:install --symlink web, (*7)


### Usage Add the css and js file where needed: ``` html {% javascripts 'bundles/stingermomentjs/js/moment-with-locales.min.js' %} <script src="{{ asset_url }}" ></script> {% endjavascripts %}

Licenses

Refer to the source code of the included files for license information, (*8)

References

  1. http://momentjs.com
  2. http://symfony.com

The Versions

09/07 2015

dev-master

9999999-dev http://momentjs.com

Symfony2 Bundle Moment.js - Parse, validate, manipulate, and display dates in JavaScript

  Sources   Download

MIT

The Requires

 

symfony date time validate i18n parse format moment l10n ender

01/07 2015

2.10.3

2.10.3.0 http://momentjs.com

Symfony2 Bundle Moment.js - Parse, validate, manipulate, and display dates in JavaScript

  Sources   Download

MIT

The Requires

 

symfony date time validate i18n parse format moment l10n ender