sihd17/weather
ramverk1课程的页面。
1.4.0
2020-01-12 14:31 UTC
Requires
- php: >=7.2
- anax/anax-ramverk1-me: ^1.0.0
Requires (Dev)
- phpunit/phpunit: ^7
This package is auto-updated.
Last update: 2024-09-13 00:27:30 UTC
README
Anax天气模块
安装和设置Anax
您需要Anax安装才能使用此模块。您可以使用https://github.com/canax/anax-cli中的anax-cli来创建Anax安装。
在目录test/中创建一个名为anax-site-develop的Anax安装。
anax create test ramverk1-me-v2
cd test
您现在可以通过将您的web服务器指向test/htdocs来测试它,这将带您到Anax首页。
通过composer安装天气模块
- 使用composer安装。
composer require sihd17/weather
- 同步文件。
rsync -av vendor/sihd17/weather/config/ ./config/ rsync -av vendor/sihd17/weather/src/ ./src/ rsync -av vendor/sihd17/weather/view/ ./view/ rsync -av vendor/sihd17/weather/test/ ./test/
- 将您的API密钥添加到config/apiKey.php,而不是xxx。
<?php
return ["ipstack" => "xxx",
"darksky" => "xxx",
"locationiq" => "xxx"
];