amatz5 / timezones by amatz5

Timezones for Laravel 5.1
18
1
2
Package Data
Maintainer Username: amatz5
Maintainer Contact: amatz5s0ya@gmail.com (Amatz)
Package Create Date: 2015-12-01
Package Last Update: 2015-12-01
Language: PHP
License: MIT
Last Refreshed: 2024-11-29 15:03:04
Package Statistics
Total Downloads: 18
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 1
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

Timezones for Laravel 5

A simple Laravel 5 service provider for including the Timezones for Laravel 5.

Installation

The Timezones Service Provider can be installed via Composer by requiring the amatz5/timezones package (required for Laravel 5) in your project's composer.json.

{
    "require": {
        "laravel/framework": "5.0.*",
        "amatz5/timezones": "dev-master"
    },
}

or

Require this package with composer:

composer require amatz5/timezones

Update your packages with composer update or install with composer install.

Usage

To use the Timezones Service Provider, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.

Find the providers key in config/app.php and register the Captcha Service Provider.

    'providers' => [
        // ...
        'Amatz5\Timezones\TimezonesServiceProvider',
    ]

for Laravel 5.1+

    'providers' => [
        // ...
        Amatz5\Timezones\TimezonesServiceProvider::class,
    ]

Find the aliases key in config/app.php.

    'aliases' => [
        // ...
        'Timezones' => 'Amatz5\Timezones\Facades\Timezones',
    ]

for Laravel 5.1+

    'aliases' => [
        // ...
        'Timezones' => Amatz5\Timezones\Facades\Timezones::class,
    ]