alignwebs / laravel-cloudflare-timezone
Laravel app timezone by cloudflare's [CF-IPCountry] HTTP header
dev-master
2021-03-16 09:41 UTC
Requires
- php: ^7.1|^8.0
- illuminate/support: *
- pragmarx/countries: ^0.7.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
This package is auto-updated.
Last update: 2025-03-16 18:03:40 UTC
README
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.