geniusts / laravel-hijri-dates
Hijri dates package for Laravel
Installs: 21 532
Dependents: 0
Suggesters: 0
Security: 0
Stars: 26
Watchers: 2
Forks: 12
Open Issues: 0
Requires
- php: >=7
- geniusts/hijri-dates: ~1.1.0
- illuminate/support: ^5|^6|^7|^8
README
Installation
Composer
composer require geniusts/laravel-hijri-dates
Service Provider
Add the package to your application service providers in config/app.php
file.
'providers' => [ ... /** * Third Party Service Providers... */ GeniusTS\LaravelHijri\HijriDatesServiceProvider::class, ],
Config File
php artisan vendor:publish --provider="GeniusTS\LaravelHijri\HijriDatesServiceProvider" --tag=config
Usage
Usage documentation available in hijri-dates repository.
translation
-
Add new language:
- create new directory under
resources/lang/vendor/hijri-dates
in your application files. - Add
dates.php
file under the new directory. it should return array with the same structure of package translation files.
- create new directory under
-
change default translation:
the following function export default translation to resources/lang/vendor/hijri-dates
in your application files.
php artisan vendor:publish --provider="GeniusTS\LaravelHijri\HijriDatesServiceProvider" --tag=translation
License
This package is free software distributed under the terms of the MIT license.