Download the PHP package kibatic/timezone-bundle without Composer

On this page you can find all versions of the php package kibatic/timezone-bundle. 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 timezone-bundle

Kibatic Timezone Bundle

Build Status

This bundle is used to manage the display of a \DateTimeInterface in the right timezone.

The common case is a project with all the \DateTimeInterface objects are in UTC (in the DB, in PHP, ...) but the user can change the timezone in his preferences in order to display the dates with its own timezone.

Quick start

installation

in config.yml

in php

Convert \DateTime to a given timezone with AdjusterUtil

Format datetime with timezone in twig

in twig the syntax of tzdate is exactly the same as the twig date filter. (it calls the default date filter. The only difference is that the timezone argument is set to false by default)

Format Datetime in twig with localization (intl)

You can use the new twig : tz_format_datetime filter. It has the same interface than the format_datetime filter from twig/extra-bundle, but with a $timezone to false by default.

Deprecated Localized date

You can use the new twig : tzlocalizeddate filter. It has the same interface than the localizeddate filter from twig-extension intl, but with a $timezone to false by default.

Timezone Provider

A timezone Provider is a service that implements TimezoneProviderInterface.

It's a service that is used to know the current timezone to display (for a webpage, an API, in a command, for an export,...)

It implements TimezoneProviderInterface

The adjuster as twig global variable

If needed, you can add the adjuster as a twig global variable :

in config/packages/twig.yaml, you can add

and then in any twig you can use the adjuster

Versions

2020-10-16 : v2.1.0

2020-10-16 : v2.0.0

MAJOR BC BREAKS !!

2019-10-14 : v1.1.1

2019-10-14 : v1.1.0

2019-10-11 : v1.0.2

2019-10-11 : v1.0.1

2019-10-11 : v1.0.0


All versions of timezone-bundle with dependencies

PHP Build Version
Package Version
Requires php Version ^7.2|^8.0
symfony/framework-bundle Version ^6.0
symfony/twig-bundle Version ^6.0
twig/twig Version ^3.0
twig/intl-extra Version ^3.0
twig/extra-bundle Version ^3.0
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 kibatic/timezone-bundle contains the following files

Loading the files please wait ....