信誉 / dandb-laravel
DandB REST API 的 Laravel 包装器
v1.0.3
2015-08-26 22:32 UTC
Requires
- php: >=5.4.0
- credibility/dandb: 1.0.*
- illuminate/support: *
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: dev-master
This package is not auto-updated.
Last update: 2024-09-28 16:57:04 UTC
README
基于 credibility/dandb 的 Laravel 基于 Dun and Bradstreet 新兴企业 API 客户端。
安装
使用 composer
"require": {
"credibility/dandb-laravel": "dev-master"
}
然后,在 config/app.php
中,将以下内容添加到服务提供者数组中。
array(
...
'Credibility\DandB\Providers\DandBServiceProvider',
)
配置
运行 php artisan config:publish credibility/dandb-laravel
来发布你的配置文件。使用说明在文件内。
用法
在应用程序中使用时,调用 App::make('dandb')
或如果你有一个 Illuminate/Foundation/Application
实例,使用 $app->make('dandb')
从那里,返回的对象将允许你调用 credibility/dandb 类中的方法。这些调用将自动使用 Laravel 缓存抽象进行缓存。