kennebula/calendar
Composer 安装命令:
composer create-project kennebula/calendar
包简介
This package will give calendar json
README 文档
README
Calander Json and view, timetable coming soon
first
copy down in your composer.json
"repositories": [
{
"type": "vcs",
"url": "https://github.com/hnineiphyu-128/KenCalander"
}
]
And then, the updated composer.json file should look as follows:
{
"name": "laravel/laravel",
"type": "project",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
// here you go
"repositories": [
{
"type": "vcs",
"url": "https://github.com/hnineiphyu-128/KenCalander"
}
],
// ... so on
}
Now composer will also look into this repository for any installable package. Execute the following command to install the package:
composer require kennebula/calendar
As you can see, the package has been installed successfully. Now, open the config/app.php file and scroll down to the providers array. In that array, there should be a section for the package service providers. Add the following line of code in that section:
/*
- Package Service Providers...
*/
Kennebula\Calendar\CalendarServiceProvider::class,
And finally Now, open the Kernal.php file and scroll down to the routeMiddleware. In that array, there should be a section for the package services class. Add the following line of code in that section:
/*
* The application's route middleware.
*
* These middleware may be assigned to groups or used individually.
*
*/
'CalendarService' => \Kennebula\Calendar\CalendarService::class,
Conclusion
I would like to thank you for the time you've spent reading this article. I hope you've enjoyed it
Using Tultorial
Calling for calander json
\$your_year_month='2023-06';
CalendarService::getcalendarjson($your_year_month);
Calling for calander view
getcalendar/your_year_month
your year month format is must be 'yyyy-mm'.
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-06-23