The IBM Social Business Toolkit team is working hard to integrate PHP support and a release is now available on our Github repository.
In order to allow the same level of extensibility that we have in the Java API, the project uses object oriented PHP and under SocialSDK/php you will find 3 projects: php-core, wordpress-plugin and moodle-block. The PHP core allows you to quickly, and easily integrate the SDK into your own PHP application, allowing you to connect to IBM SmartCloud or IBM Connections using Basic Authentication, OAuth 1.0a or OAuth 2.0.
Using the wordpress-plugin package it takes less than 5 minutes to add social capabilities to your existing WordPress deployment – just follow our setup instructions. Once installed, the plugin will allow you to create a fully customized grid that can list your SmartCloud or Connections files, allow you to edit and tag them or give you the ability to view communities.
Grids (shown below) can be customized just as any other regular WordPress widget; through the Appearance -> Widgets menu entry in the WordPress admin panel. Currently, three widgets are available:
- Files grid widget which you can customize to display files or folders of certain types (e.g. public, private, pinned, etc). In addition you can choose what grid elements to display (should the grid have a footer or pager?). You can even specify a custom template to use, so you can style your grid to heart’s content and decide yourself what information to display about a file.
- Community grid widget which allows you to display your communities, public communities or communities to which you have been invited to. Again, the type of information displayed about a community can be fully customized.
- Files view which is in essence an extension of the files grid, and allows you to perform actions on files such as tagging or deleting them.
Oh, and of course you can create your own widgets! A community members widget is also currently in the pipeline; this widget would allow you to add, invite and import members to a community, display and export existing members as well as review sent invitations. Other work in progress includes file uploads and a PHP AtomService and AtomEntity interface to call the Connections API.
Note that if you are using the WordPress 2013 default theme, you may have some problems with the widget’s appearance (we are working on resolving this).