Download the PHP package wdmg/bootstrap-datepicker-plugin without Composer

On this page you can find all versions of the php package wdmg/bootstrap-datepicker-plugin. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package bootstrap-datepicker-plugin

Bootstrap DatePicker

Date and time picker plugin for Bootstrap framework

Installation

$ npm install bootstrap-datepicker-plugin
$ bower install bootstrap-datepicker-plugin
$ yarn add bootstrap-datepicker-plugin
$ composer require bootstrap-datepicker-plugin

Usage example

For example use the input-group:

<div class="form-group">
    <label class="control-label">Datetime:</label>
    <div id="datepicker" class="input-group">
        <input type="text" class="form-control" name="some-datetime" value="2019-01-21 22:06:54">
        <span class="input-group-btn">
            <button type="button" class="btn btn-default">
                <span class="glyphicon glyphicon-calendar" aria-hidden="true"></span>
            </button>
        </span>
    </div>
</div>

... and init from script:

<script type="text/javascript">
    $(document).ready(function () {
        $('#datepicker').datepicker({
            format: 'YYYY/MM/DD',
            ...
        });
    });
</script>

Options

Name Type Default Description
format string 'DD/MM/YYYY' Default format of date/time.
className string '.datepicker' Class name of input group.
input string '.form-control' Selector or jQuery object of input.
toggle string '.input-group-btn > button' Selector of datepicker popover toggle.
placement string 'auto' Default placement of popover.
template string <div class="popover popover-datepicker" role="tooltip"...></div> Popover template.
daysStrings array [{'short': 'Mon', 'full': 'Monday'}, ...] Days of week, starting on Monday.
monthsStrings array [{'short': 'Jan', 'full': 'January'}, ...] Months, starting on January.
debug boolean false Flag if need debug in console log.

Support formats

Format
DD/MM/YYYY HH/mm/ss
DD/MM/YYYY HH:mm:ss
DD.MM.YYYY HH/mm/ss
DD.MM.YYYY HH:mm:ss
DD-MM-YYYY HH/mm/ss
DD-MM-YYYY HH:mm:ss
YYYY/MM/DD HH/mm/ss
YYYY/MM/DD HH:mm:ss
YYYY.MM.DD HH/mm/ss
YYYY.MM.DD HH:mm:ss
YYYY-MM-DD HH/mm/ss
YYYY-MM-DD HH:mm:ss
MM/DD/YYYY HH:mm:ss
DD/MM/YYYY
DD.MM.YYYY
DD-MM-YYYY
YYYY/MM/DD
YYYY.MM.DD
YYYY-MM-DD
MM/DD/YYYY
HH/mm/ss
HH:mm:ss

Methods

Name Type Description
onShow function The function that is called when the datepicker popover is ready to be displayed.
onShown function The function that is called when the datepicker popover is displayed.
onHide function The function that is called when datepicker popover to prepare for hiding.
onHidden function The function that is called when the datepicker popover is hidden.
onGetPrev function The function that is called when you select the previous month or year.
onGetNext function The function that is called when you select the next month or year.
onSetValue function The function that is called when the date is selected. Sets new date value to input.

Status and version


All versions of bootstrap-datepicker-plugin with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wdmg/bootstrap-datepicker-plugin contains the following files

Loading the files please wait ....