Symfony Bundle to combine messages from different social media platforms into one feed.
- Easy way to get messages from various social media platforms. Such as:
- Facebook*
- Youtube
- Twig integration*
- Sorting of messages*
- Sorting by date (default)
- Sorting by platform (e.g. first show youtube items, then show twitter)*
- Caching
- Render messages with PHP or React
- Multiple searches for each platform
*= Not implemented yet.
composer require milosa/social-media-aggregator-bundle
Todo
To use React:
- Run
php bin/console assets:install public
in your application, to copy the JS and CSS files from the bundle to your project. - Add the following to your applications
framework.yaml
file:framework: assets: packages: milosasocialmediaaggregator: # this package uses its own manifest (the default file is ignored) json_manifest_path: "%kernel.project_dir%/public/bundles/milosasocialmediaaggregator/build/manifest.json"
- Add the following tags to your page:
and
<link rel="stylesheet" type="text/css" href="{{ asset('/bundles/milosasocialmediaaggregator/build/app.css', 'milosasocialmediaaggregator') }}"> <script src="{{ asset('/bundles/milosasocialmediaaggregator/build/app.js', 'milosasocialmediaaggregator') }}"></script>
<div id="aggregator-app"></div>