fortean/laravel-festivus

Festivus:一个基于Guzzle的Laravel REST客户端,包含打包的服务描述。

5.0.0 2015-04-04 02:18 UTC

This package is not auto-updated.

Last update: 2024-09-14 16:18:55 UTC


README

Festivus为Laravel 5提供了一个封装Guzzle的Facade,并通过辅助函数使得使用起来非常简单。Eloquent模型可以从服务调用和API定义中获取数据。你还需要什么?一根铝制杆子?

内容

安装

将laravel-festivus添加到composer.json文件中

"require": {
  "laravel-festivus": "5.0.*"
}

使用composer安装此包。

$ composer update

注册包

app/config/app.php文件中的providers数组中注册服务提供者

'providers' => array(
	// ...
	
	'Fortean\Festivus\FestivusServiceProvider'
)

app/config/app.php文件中的aliases数组中添加别名

'aliases' => array(
	// ...
	
	'Festivus' => 'Fortean\Festivus\Facade\Festivus',
)

感谢

感谢Guzzle团队制作如此出色的客户端!没有你们,我可能还在手动编写愚蠢的REST调用!

许可证

此库受MIT许可证的许可。