1. Go to this page and download the library: Download c2is/socialwall-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
c2is / socialwall-bundle example snippets
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new C2is\Bundle\SocialWallBundle\C2isSocialWallBundle(),
);
return $bundles;
}
}
class MyController
{
public function myAction()
{
$socialWall = $this->get('c2is.social_wall.manager');
/* Those methods will throw an exception if the social network is not properly configured */
$twitterItems = $socialWall->getTwitterItemsForUser($overrideUser /* if omitted, uses the user_id defined in the configuration */,, $overrideLimit /* if omitted, uses the limit defined in the configuration */,);
$twitterItems = $socialWall->getTwitterItemsForTags($overrideTags /* if omitted, uses the tags defined in the configuration */, $overrideLimit /* if omitted, uses the limit defined in the configuration */);
}
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.