PHP code example of movescode / seo

1. Go to this page and download the library: Download movescode/seo 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/ */

    

movescode / seo example snippets


use MovesCode\Seo\Seo;

$seo = (new Seo())
    ->openGraph('MovesOS', 'pt_BR', 'website')
    ->socialProfiles([
        'instagram' => 'https://www.instagram.com/moves',
        'facebook' => 'https://www.facebook.com/moves',
        'tiktok' => 'https://www.tiktok.com/@moves',
        'google_business' => 'https://www.google.com/maps?cid=SEU_ID',
        'linkedin' => 'https://www.linkedin.com/company/moves'
    ])
    ->organization('Moves', 'https://www.moves.com.br', 'https://www.moves.com.br/logo.png')
    ->optimize('Título', 'Descrição da página.', 'https://www.moves.com.br/pagina', 'https://www.moves.com.br/share.jpg');

echo $seo->render();

$seo->localBusiness(
    'Moves São Paulo',
    'https://www.moves.com.br',
    'https://www.moves.com.br/fachada.jpg',
    [
        'streetAddress' => 'Rua Exemplo, 100',
        'addressLocality' => 'São Paulo',
        'addressRegion' => 'SP',
        'postalCode' => '01000-000',
        'addressCountry' => 'BR'
    ],
    '+55 11 4000-0000'
);