Originally published at: http://www.sitepoint.com/3-ways-implement-embeddable-custom-badges/
One great way of organically promoting your application is to provide “badges”; snippets of content that people can embed on their own websites.
This can contain up-to-the-minute information from your application about a user, piece of content or another object, dynamically generated and inserted into other websites. This is probably best illustrated with some examples:
In this article I’m going to take a look at some of the ways you can implement this.
Setting up our Example Application
First, we’ll define our application’s dependencies using Composer:
"silex/silex": "~2.0@dev", "twig/twig": ">=1.8,<2.0-dev", "smottt/wideimage": "dev-master"