opencomponents/oc-client-php
最新稳定版本:0.0.1
Composer 安装命令:
composer require opencomponents/oc-client-php
包简介
oc-client PHP implementation
README 文档
README
PHP client for OpenComponents
For a nodejs implementation check this link. This library is heavily based on it.
Install
composer require opencomponents/oc-client-php
Quickstart
use OpenComponents\Client; // Initializing the client $client = new Client(array( "serverRendering" => 'https://your-components.repository.com/' )); // Render some component $components = $client->renderComponents(array( array( 'name' => 'your-amazing-widget', 'parameters' => array( 'param1' => 'hello opencomponents!', 'param2' => 'just show me the component' ) ), array( 'name' => 'one-more-component' ) )); // Print the rendered component and volià echo $components['html'];
Running tests
composer test
统计信息
- 总下载量: 1.65k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 2
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2017-05-10