janknapik/laravel-slovak-namedays
Composer 安装命令:
composer require janknapik/laravel-slovak-namedays
包简介
A Laravel package to get Slovak namedays.
README 文档
README
This package provides a simple and convenient way to retrieve Slovak namedays based on date. The data is sourced from a JSON file and supports the full Slovak calendar year, including adjustments for leap years.
Features
- Retrieve namedays for any date in the Slovak calendar.
- Includes support for leap years.
- Easy integration into any Laravel project.
Installation
-
Install via Composer:
Run the following command in your terminal to install the package:
composer require janknapik/laravel-slovak-namedays
-
Publish the Configuration (optional):
After installation, if you want to customize the package configuration, you can publish the configuration file:
php artisan vendor:publish --tag=slovak-namedays-config
-
Namedays Data File:
The JSON file containing the nameday data will be stored in the data/namedays.json directory. You can customize the data if needed by editing this file.
php artisan vendor:publish --tag=slovak-namedays-config
Usage
To use the package, you can call the getSlovakNamedays($date) function to retrieve the nameday for a specific date. The date should be provided in MM-DD format, such as "01-01" for January 1st.
Example
use Janknapik\SlovakNamedays\SlovakNamedays; $slovakNamedays = new SlovakNamedays(); $currentDate = Carbon::now(); $namedays = $slovakNamedays->getSlovakNamedays($currentDate); echo "The nameday for is: $namedays";
Configuration
The namedays.json file in the data directory contains the nameday data for every day of the year. The format for each entry is "MM-DD": "Name". You can edit this file if you need to add custom namedays or modify existing entries.
License
This package is open-source software, licensed under the MIT License.
Contributing
We welcome contributions from the community! If you'd like to suggest a feature, report a bug, or contribute code, please follow these steps:
Fork the repository. Create a new branch for your feature or bugfix. Make your changes and test them thoroughly. Submit a pull request with a detailed description of your changes. This package was developed and maintained by janknapik. If you have any questions or issues, please feel free to reach out or open an issue on GitHub.
Thank you for using the Slovak Namedays Laravel Package!
janknapik/laravel-slovak-namedays 适用场景与选型建议
janknapik/laravel-slovak-namedays 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5 次下载、GitHub Stars 达 1, 最近一次更新时间为 2024 年 11 月 12 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 janknapik/laravel-slovak-namedays 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 janknapik/laravel-slovak-namedays 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 5
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-11-12