grantholle/powerschool-schools
Composer 安装命令:
composer require grantholle/powerschool-schools
包简介
School boilerplate for Laravel applications.
README 文档
README
This package is meant to jumpstart a Laravel project to include school support out of the box. It includes a migration, model and command to populate the table.
Installation
composer require grantholle/powerschool-schools
Migration
To publish the migration included, run:
php artisan vendor:publish --provider="GrantHolle\PowerSchool\Schools\PowerSchoolSchoolsServiceProvider"
Model
This package includes GrantHolle\PowerSchool\Schools\Models\School. You'll want to generate your own App\School (or whatever) model that extends the base School model.
<?php namespace App; use GrantHolle\PowerSchool\Schools\Models\School as BaseSchool; class School extends BaseSchool { // Your stuff }
Commands
There is a single command that is included which syncs the schools from your PowerSchool instance using the /ws/v1/district/school endpoint.
It does this using the grantholle/powerschool-api package. You will need to add the config and environment variables required for that package.
After that is configured and you have ran the migration to create the schools table, you can run:
php artisan powerschool:schools
to populate the table with the school data for your district.
You can also sync individual schools by passing the school_number as a command argument:
php artisan powerschool:schools {school_number}
License
grantholle/powerschool-schools 适用场景与选型建议
grantholle/powerschool-schools 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 305 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 08 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 grantholle/powerschool-schools 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 grantholle/powerschool-schools 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 305
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-08-22