awakenweb/livedocx4laravel

此包已被废弃,不再维护。未建议替代包。

Livedocx 的 Laravel 服务提供者和 Facade

2.0 2016-02-22 00:11 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:35:19 UTC


README

Livedocx 服务将于 2017 年 9 月 30 日关闭。

请使用 https://github.com/TextControl/txtextcontrol-reportingcloud-php 替代

livedocx4laravel

Laravel 服务提供器用于 Awakenweb/Livedocx

先决条件

此包需要

要使用 Laravel 4 版本,请访问此包的 laravel-4 分支。安装

将以下行添加到您的 composer.json 文件中

"require": {
    "awakenweb/livedocx4laravel": "2.*"
}

编辑您的 config/app.php 文件以添加服务提供者和 facade

'providers' => [
    ...
    Awakenweb\Livedocx4Laravel\LivedocxServiceProvider::class,
],
...
'aliases' => [
    ...
    'Livedocx' => Awakenweb\Livedocx4Laravel\Facades\Livedocx::class,
],

然后运行 artisan 命令以发布配置文件

php artisan config:publish awakenweb/livedocx4laravel

最后编辑 config/livedocx.php 文件。

wsdl 更改为匹配您的 Livedocx 账户类型(免费、高级或完全授权),以及用于身份验证的 usernamepassword,然后您就可以开始使用了!

使用

Livedocx facade 会自动实例化 Awakenweb/Livedocx/Livedocx 及其所有依赖项。

快速示例。

//to list all templates present on Livedocx service
$tpl = Livedocx::createRemoteTemplate();
return $tpl->listAll();