Download the PHP package jackiedo/timezonelist without Composer

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

Laravel Timezone List

Fix coding standards Latest Stable Version Total Downloads License

Overview

Feature

Versions and compatibility

Currently, there are some branches of Timezone-List is compatible with the following version of Laravel framework

Timezone-List branch Laravel version
4.x 4.x
5.x 5.x and later

This documentation is use for branch 5.x

Documentation

Installation

You can install this package through Composer with the following steps:

Step 1 - Require Package

At the root of your application directory, run the following command (in any terminal client):

Note: Since Laravel 5.5, service providers and aliases are automatically registered. But if you are using Laravel 5.4 and earlier, you must register the Service Provider and the Facade manually. Do the following steps:

Step 2 - Register Service Provider

Open config/app.php, and add a new line to the providers section:

Step 3 - Register Facade Alias

Add the following line to the aliases section in file config/app.php:

Usage

Working With Facade

Laravel Timezone List has a facade with the fully qualified namespace is Jackiedo\Timezonelist\Facades\Timezonelist. You can perform all operations through this facade.

Example:

Note: If at the installation step, you have registered the Facde alias, then in the areas where the namespace is not used, eg views..., you can completely use that Facde alias to use instead of having to use the fully qualified Facde namespace.

Example: (use in the resources/views/demo.blade.php file)

Using As Regular Class

You can completely use the package through the Jackiedo\Timezonelist\Timezonelist class like using a regular object class.

Example:

Available Methods

Render a timezone listbox

Syntax:

Note: the create() method will be removed in the version 6.x

Example:

This will output the following HTML code:

The Timezonelist::toSelectBox() method has four parameters:

Example:

Example of the difference of the fourth parameter

Example-render-select-tag

Render a timezone array

Syntax:

Example:

Filter the returned list

By default, the toSelectBox, toArray... methods will return a list of timezones consisting of 11 groups (one common group and 10 groups corresponding to the continents):

In some cases, we don't want to get in that list some specified groups, we can do that by some of the following methods:

Get only some specified groups

Syntax:

Example:

Exclude some specified groups

Syntax:

Example:

Change the layout of the returned list

In some cases, we need to change the form of the list that we will receive, we can do it through some of the following methods:

Decide whether to split group or not

Syntax:

Example:

Decide whether to show the timezone offset or not

Syntax:

Example:

Reset all config and return new list

Always keep in mind that, if we use package methods via Facade, we are using it as a static interface to a class. This means that the filter and layout settings will always be saved for the next call. If we don't want to reuse these settings, we have to execute the following method on the next call:

Syntax:

Example:

Contributors

This project exists thanks to all its contributors.

License

MIT © Jackie Do


All versions of timezonelist with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
illuminate/support Version >=5.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 jackiedo/timezonelist contains the following files

Loading the files please wait ....