Download the PHP package webcito/bs-datepicker without Composer

On this page you can find all versions of the php package webcito/bs-datepicker. 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 bs-datepicker

bs-datepicker

A jQuery-based datepicker plugin with a Bootstrap look & feel.

Current version: 1.1.2

Highlights

Options

Option Type Default Description
locale string de-DE Intl locale for month/weekday names and formatting
range boolean false Enable range selection (start/end)
inline boolean false Render inline (no dropdown)
startOnSunday boolean false Start week on Sunday (else Monday)
autoClose boolean true Close dropdown after pick (single) or after end (range)
format 'locale' | 'iso' | function 'locale' Output formatter for legacy/direct input mode
separator string – Separator used for range text
zIndex number 1080 z-index for dropdown panel
months number 1 Number of months to render side by side
placeholder string Select period Placeholder for visible display/inline output
icons.prevYear string bi bi-chevron-double-left Icon (previous year)
icons.prev string bi bi-chevron-left Icon (previous month)
icons.today string bi bi-record-circle Icon (jump to today)
icons.next string bi bi-chevron-right Icon (next month)
icons.nextYear string bi bi-chevron-double-right Icon (next year)
icons.clear string bi bi-x-lg Icon (clear selection)
classes.display string form-control d-flex align-items-center justify-content-between Classes on the visible display wrapper (dropdown mode)
classes.displayText string '' Classes on the text span
classes.displayIcon string bi bi-calendar-event Classes on the icon
disabled.before Date string – Disable all days <= date
disabled.after Date string – Disable all days >= date
disabled.min Date string – First allowed day
disabled.max Date string – Last allowed day
disabled.dates (Date string)[] – Individual disabled dates

Methods

Method Signature Returns Description
val val() string or [string,string] Getter: Single → ISO YYYY-MM-DD or ''; Range → [startISO, endISO] (empty strings when unset)
val val(date) jQuery Setter (Single): accepts Date |string|null (ISO YYYY-MM-DD for strings). Disabled dates are ignored.
val val(start, end) / val([start, end]) jQuery Setter (Range): accepts Date |string|null. Disabled dates are ignored independently.
getDate getDate() Date | null or [Date,Date] Current selection (Range: only present edges)
setDate setDate(Date | string | null) jQuery Set single date (disabled dates are purged)
setDate setDate([start,end]) jQuery Set range (disabled dates are purged)
destroy destroy() jQuery Destroy instance and remove DOM/listeners
setDisableDates setDisableDates(config) jQuery Set disabled configuration at runtime; purges invalid selection
getDisableDates getDisableDates() object | null Get current disabled config
setMin setMin(date) jQuery Set min boundary; purges invalid selection
setMax setMax(date) jQuery Set max boundary; purges invalid selection
setMonth setMonth(count) jQuery Set the number of months to display simultaneously
setViewMonth setViewMonth(date) jQuery Jump to a specific month/year without changing selection
setRange setRange(boolean) jQuery Toggle between single and range selection at runtime; preserves selection as start/single
setDisabled setDisabled(boolean) jQuery Toggle picker interaction; when true the dropdown cannot be opened
clearDisableDates clearDisableDates() jQuery Remove all disabled rules
setLocale setLocale(locale) jQuery Switch locale at runtime and re-render immediately

Events (Namespace: bs.datepicker)

Event When detail payload
init.bs.datepicker After initialization { range:boolean, inline:boolean, months:number }
show.bs.datepicker Dropdown shown {}
hide.bs.datepicker Dropdown hidden {}
render.bs.datepicker After each render { current:Date, range:boolean }
navigate.bs.datepicker On nav/header buttons { action:string, current:Date } where action is one of prev, next, prevYear, nextYear, today, zoomOut, selectYear, selectDecade
changeDate.bs.datepicker Any selection change Single: { value:Date |null }; Range: { value:[Date|null, Date|null] }
clear.bs.datepicker On clear {} (plus a changeDate with nulls)
setLocale.bs.datepicker After setLocale { locale:string }
setDisableDates.bs.datepicker After setDisableDates { disabled:object }
setMin.bs.datepicker After setMin { min:Date |null }
setMax.bs.datepicker After setMax { max:Date |null }
setMonth.bs.datepicker After setMonth { months:number }
setViewMonth.bs.datepicker After setViewMonth { current:Date }
setRange.bs.datepicker After setRange { range:boolean }
setDisabled.bs.datepicker After setDisabled { disabled:boolean }
clearDisableDates.bs.datepicker After clearDisableDates {}

Example (legacy – direct input)

Example (container mode – hidden inputs inside wrapper)

Disabled dates (change at runtime)

Notes


All versions of bs-datepicker with dependencies

PHP Build Version
Package Version
Requires components/jquery Version ^3
twbs/bootstrap Version v4.* | v5.*
twbs/bootstrap-icons Version ^1
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 webcito/bs-datepicker contains the following files

Loading the files please wait ...