amatz5 / timezones
Timezones for Laravel 5.1
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Type:package
pkg:composer/amatz5/timezones
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2025-10-15 22:31:49 UTC
README
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, ]