lasserafn/laravel-economic
最新稳定版本:4.1
Composer 安装命令:
composer require lasserafn/laravel-economic
包简介
Economic REST wrapper for Laravel
README 文档
README
Installation
- Require using composer
composer require lasserafn/laravel-economic
In Laravel 5.5, and above, the package will auto-register the service provider. In Laravel 5.4 you must install this service provider.
- Add the EconomicServiceProvider to your
config/app.phpproviders array.
<?php 'providers' => [ // ... \LasseRafn\Economic\EconomicServiceProvider::class, // ... ]
- Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="LasseRafn\Economic\EconomicServiceProvider"
Usage outside of Laravel
You can use this package without Laravel, but configuration files wont be used, so you must provide the keys to the class.
The wrapper uses the config() method in the Economic class if no keys are provided. But if you remember to provide keys, it should never be called.
Otherwise register a global method for config until there's a framework agnostic version (coming eventually)
Contributors
统计信息
- 总下载量: 17.21k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-12-05