Using php-component

From SmartCommunity

Jump to: navigation, search

Put php-component working copy into your project’s root and include component.inc.php into one of your your project’s files. So you’ll be able to create an instance of BSMComponent class which represents the component and define some of it’s settings. Here is an example of how to make it.

$component = new BSMComponent('xmpp.jsmart.web.id', 12345, 'area51.jsmart.web.id', 'component_password');
$component->setSoftwareVersion('My Component', '0.1');
$component->setComponentType('bot');
$component->setComponentTitle('My Component 0.1');

In the next step you may need to set up the component’s registration form.


Alert.png This article is marked as unfinished. You may contribute by writing it or wait for it’s author to do it.