octomated / laravel-vcom-api
Easily access meteocontrol's VCOM-API in your laravel projects with this package provided by octomated
Fund package maintenance!
octomated
Requires
- php: ^8.2
- illuminate/contracts: ^10.0
- meteocontrol/vcom-api-client: ^3
- spatie/laravel-package-tools: ^1.14.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.8
- orchestra/testbench: ^8.8
- pestphp/pest: ^2.20
- pestphp/pest-plugin-arch: ^2.5
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
This package is auto-updated.
Last update: 2024-10-08 23:44:22 UTC
README
This is a laravel package making your meteocontrol data accessible with minimal configuration.
Installation
You can install the package via composer:
composer require octomated/laravel-vcom-api
You can optionally publish the config file with:
php artisan vendor:publish --tag="laravel-vcom-api-config"
The contents of the published config file:
return [ 'url' => env('MC_VCOM_API_URL', 'https://api.meteocontrol.de'), 'username' => env('MC_VCOM_API_USERNAME'), 'password' => env('MC_VCOM_API_PASSWORD'), 'api_key' => env('MC_VCOM_API_KEY'), 'auth_mode' => env('MC_VCOM_API_AUTH_MODE', 'oauth'), ];
Install this package, set your username, password and api key in your environment file, and you're good to go.
MC_VCOM_API_USERNAME= MC_VCOM_API_PASSWORD= MC_VCOM_API_KEY=
Usage
// let the dependency injection take care of resolving and configuring your VCOM-API client // __construct(VcomApi $vcomApi) // or make use of the facade for quick access dump(VcomApi::systems()->get());
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.