定制 abruno/unipvlectures 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

abruno/unipvlectures

最新稳定版本:2.0.1

Composer 安装命令:

composer require abruno/unipvlectures

包简介

The package allows to retrieve data lectures data from the unipv engineering websites

README 文档

README

unipv/lectures

This package allows to retrieve data from the engineering websites of the University of Pavia.

Installation

composer require abruno/unipvlectures  

Once the package is installed package assets must be published by using the artisan command vendor:publish

php artisan vendor:publish --provider="UnipvLectures\Providers\UnipvLectureProvider"

In order to be able to use package assets, package service provider should be registered in your application. Go to the file config/app.php.

  'providers' => [
   
   // other service providers
   
   /*
   * Package Service Providers...
   */
   UnipvLectures\Providers\UnipvLectureProvider::class,

   // other Service Providers...
   
   ],

After service provider is configured, and package assets are published, migration should be run.

php artisan migrate

Migration will create lectures, courses, teachers, teacher_courses in your database. Once table are created command unipv:import-lectures must be called.

Provide then the right configuration in config/unipvlectures.php, variables courses_urls and lectures_urls.

php artisan unipv:lecturer-import

Wait till the command ends the import.

After data is imported you can start by creating a blade template. Once it has been created provide its name still in the configuration config/unipvlectures.php, template.

  return [

    /*
    |--------------------------------------------------------------------------
    | Default Template
    |--------------------------------------------------------------------------
    |
    | This option controls the template used by the root to display data.
    |
    */

    'template' => '',

    /*
    |--------------------------------------------------------------------------
    | Urls used to retrieve Classes
    |--------------------------------------------------------------------------
    |
    | This option sets the url where to retrieve course names.
    |
    */

    'courses_urls' => [],

    /*
    |--------------------------------------------------------------------------
    | Urls used to retrieve Lecturers
    |--------------------------------------------------------------------------
    |
    | This option sets the url where to retrieve the lectures.
    |
    */

    'lectures_urls' => [],
];

To see the timetable open the linK:


http://localhost:8000/lectures

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2022-11-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固