Codeigniter Helper for Structure Data Google

Feb 15, 2018 Lufti
Codeigniter Helper for Structure Data Google

What is structure data ?

Google search engine can understand what is your content about. And take effect in search result.


I'm creating Helper for Codeigniter to generate structure data for google, the result is using JSON-LD. I put the code in github, and you can download it free or contribute to growing this helper.

If you familiar in Codeigniter Framework below is how to implement it.

GoogleRichCard::SocialProfile($fullname = '', $url = '', $sociallink = array());

# Results in
<script type="application/ld+json">
		  "@context": "",
		  "@type": "Person",
		  "name": "Your Name",
		  "url": "http://your-url-here",
		  "sameAs": $sociallink // json


Fork or Download it here


Photo by Artem Sapegin on Unsplash