alignwebs/laravel-cloudflare-timezone

Laravel app timezone by cloudflare's [CF-IPCountry] HTTP header

dev-master 2021-03-16 09:41 UTC

This package is auto-updated.

Last update: 2024-04-16 16:02:53 UTC


README

Latest Version on Packagist Build Status Quality Score Total Downloads

This laravel package helps you to set your app's timezone in runtime according to Header "CF-IPCountry" value of CloudFlare.

Prerequisite - Cloudflare Setting

Enable "IP Geolocation" from Network tab.

Installation

You can install the package via composer:

composer require alignwebs/laravel-cloudflare-timezone

Usage

php artisan vendor:publish --provider="Alignwebs\LaravelCloudflareTimezone\LaravelCloudflareTimezoneServiceProvider" --tag=config

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email alignwebs@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.