Looking to hire Laravel developers? Try LaraJobs

bard maintained by laravelista

Description
Laravel friendly Bard that writes sitemap poetry in xml.
Author
Last update
2018/09/17 11:54 (dev-master)
License
Links
Downloads
15 208
Tags

Comments
comments powered by Disqus

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