kennebula/calendar

This package will give calendar json

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Language:Blade

Type:project

dev-main 2023-06-28 10:22 UTC

This package is auto-updated.

Last update: 2025-05-28 14:36:38 UTC


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'.