mapo-89/laravel-heizreport-api
最新稳定版本:v0.2.0-beta
Composer 安装命令:
composer require mapo-89/laravel-heizreport-api
包简介
A Heizreport API client for Laravel.
README 文档
README
A simple Laravel integration for the Heizreport API. This package provides a clean interface to interact with the API.
📖 This README is also available in 🇩🇪 German.
📦 Installation
Install the package via Composer:
composer require mapo-89/laravel-heizreport-api
Add your API token to your .env file:
HEIZREPORT_API_TOKEN=your-token-here
Alternatively, you can load the token dynamically (e.g., from a database). In your AppServiceProvider inside the boot() method:
use Illuminate\Support\Facades\Config; use App\Models\Integration; public function boot() { Config::set('heizreport-api.api_token', Integration::getApiToken('Heizreport')); }
Optionally, you can publish the config file:
php artisan vendor:publish --provider="Mapo89\LaravelHeizreportApi\HeizreportApiServiceProvider" --tag="config"
⚙️ Usage
use Mapo89\LaravelHeizreportApi\Facades\HeizreportApi; // Example: Fetch all projects $data = HeizreportApi::make()->projects()->all(); // customize this based on your needs
📚 Full API documentation available at: heizreport.com
✅ Testing
composer test
📒 Changelog
Please see CHANGELOG for recent changes.
🤝 Contributing
Contributions are welcome! Please see CONTRIBUTING for details.
🔐 Security
If you discover any security issues, please do not use the issue tracker. Instead, email us directly at info@postler.de.
👥 Credits
📄 License
The MIT License (MIT). Please see the License File for more information.
🛠️ Laravel Package Boilerplate
Generated using the Laravel Package Boilerplate.
统计信息
- 总下载量: 11
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-03-17