PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Boss Ibrahim Mussa   wepesi PHP Metadata Generator   index.php   Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Example script
Class: wepesi PHP Metadata Generator
Generate metadata with the details of HTML pages
Author: By
Last change:
Date: 2 years ago
Size: 1,798 bytes
 

Contents

Class file image Download
<?php
require "vendor/autoload.php";
use
Wepesi\MetaData;

$meta= MetaData::structure()
    ->
title('Welcom Home')
    ->
descriptions('Test MetaData')
    ->
lang('fr')
    ->
cover('https://domaine.com/cover.jpg')
    ->
author('Ibrahim Mussa')
    ->
type('Website')
    ->
link('https://ibmussa.me')
    ->
follow()
    ->
keyword('metadata')
    ->
index()
    ->
build();
var_dump($meta);
/**
 * <!-- Extra information -->
 * <meta name='mobile-web-app-capable' content='yes' />
 * <meta name='apple-mobile-web-app-title' content='yes' />
 * <link name='keywords' href='metadata'>
 * <meta name='author' content='Ibrahim Mussa'>
 * <meta name='robots' content='follow,index'>
 *
 * <!-- Open Grap data-->
 * <meta property='og:site_name' content='Doctawetu' />
 * <meta property='og:title' content='Welcom Home' />
 * <meta property='og:description' content='Test MetaData' />
 * <meta property='og:url' content='https://ibmussa.me' />
 * <meta property='og:type' content='Website' />
 * <meta property='og:image:secure_url' content='https://domaine.com/cover.jpg' />
 * <meta property='og:image:type' content='image/jpeg'>
 * <!-- Size of image. Any size up to 300. Anything above 300px will not work in WhatsApp -->
 * <meta property='og:image:width' content='300'>
 * <meta property='og:image:height' content='300'>
 * <meta property='og:local' content='fr' />
 *
 * <!-- Twitter Metta Data -->
 * <meta name='twitter:card' content='summary' />
 * <meta name='twitter:title' content='Welcom Home' />
 * <meta name='twitter:description' content='Test MetaData' />
 * <meta name='twitter:url' content='https://ibmussa.me' />
 * <meta name='twitter:image' content='https://domaine.com/cover.jpg' />
 * <meta name='twitter:local' content='fr' />
 *
 * <meta name='twitter:type' content='article' />"
 */