Skip to content
forked from laravelista/Bard

Developer friendly Bard that writes sitemap poetry in xml.

License

Notifications You must be signed in to change notification settings

ubreakifix/Bard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bard

Bard is the simplest PHP Sitemap package, just add some URLs and you are ready to go.

Become a Patron

Abandoned! I suggest using spatie/larevel-sitemap instead. It is a much better package with automatic sitemap generation.

Syntax

use Laravelista\Bard\UrlSet;
use Sabre\Xml\Writer;
use Carbon\Carbon;

$sitemap = new UrlSet(new Writer);

$sitemap->addUrl('http://domain.com/contact')
    ->setPriority(0.8)
    ->setChangeFrequency('hourly')
    ->setLastModification(Carbon::now())
    ->addTranslation('hr', 'http://domain.com/hr/contact');

$sitemap->render()->send();

Start learning

Installation

Run this from your project root in command line:

composer require laravelista/bard

Documentation

Tutorials

Bard

About

Developer friendly Bard that writes sitemap poetry in xml.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%