dev-master
9999999-devoc-client PHP implementation
GPL-3.0
The Requires
The Development Requires
0.0.1
0.0.1.0oc-client PHP implementation
GPL-3.0
The Requires
The Development Requires
oc-client PHP implementation
![Build status][build svg] ![Code coverage][coverage svg], (*1)
PHP client for OpenComponents, (*2)
For a nodejs implementation check this link. This library is heavily based on it., (*3)
composer require opencomponents/oc-client-php
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'];
composer test
oc-client PHP implementation
GPL-3.0
oc-client PHP implementation
GPL-3.0