bashikr/weather-module
Composer 安装命令:
composer require bashikr/weather-module
包简介
Anax weather module.
关键字:
README 文档
README
Weather Module (bashikr/weather-module)
Anax weather module (weather-module) implements a weather service. You can use this module, together with an Anax installation.
How to use the weather-module as a service?
This is a Anax-module and its usage is primarly intended to be together with the Anax framework. You can first install an instance on anax/anax and then run this module inside it.
Before you install the moduel, be sure to have the same autoload and require structure in your composer.json that is located in your Anax-project's root.
"autoload": {
"psr-4": {
"Anax\\": "src/",
"Bashar\\": "src/"
}
},
Install using composer.
To install weather-module using composer enter the following command:
composer require bashikr/weather-module
You may copy all the module configuration files using scaffold postprocessing file.
# Go to the root of your Anax base repo
bash vendor/bashikr/weather-module/.anax/scaffold/postprocess.d/700_weather_module.bash
Once You have executed the before mentioned bash command, the structure of your ../config/page.php will be changed. Therefore you have to replace the content of page.php again with your original content. Here you can copy the Anax boilerplate code for page.php
Please don't forget to add your tokens inside the config repository:
Insert your weather token inside this file
# Go to the root of your Anax base repo
config/OpnWrMpToken.php
Insert your ip token inside this file
# Go to the root of your Anax base repo
config/geoToken.php
To kick off with the module, add this route /ip-weather to the navbar. You can find the navbar files inside the path:
# Go to the root of your Anax base repo
config/navbar/header.php // The actual navbar
# Go to the root of your Anax base repo
config/navbar/responsive.php // The hamburger menu
bashikr/weather-module 适用场景与选型建议
bashikr/weather-module 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 24 次下载、GitHub Stars 达 0, 最近一次更新时间为 2020 年 12 月 06 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「module」 「mvc」 「weather」 「education」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bashikr/weather-module 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bashikr/weather-module 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bashikr/weather-module 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Kinikit - PHP Application development framework MVC component
Laravel-forecast provides a service provider and a facade around the Forecast-php wrapper
Add a weather widget to Flarum
bootstrap select field module implementing http://silviomoreto.github.io/bootstrap-select/
Simple weather forecaster for Laravel
Yii2 module to manage website content. Kind of a CMS...
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-12-06