laravelista / bard
Laravel friendly Bard that writes sitemap poetry in xml.
Installs: 15 172
Dependents: 0
Suggesters: 0
Security: 0
Stars: 48
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.4
- nesbot/carbon: ~1.0
- sabre/xml: ^2.1
- symfony/http-foundation: ~2.0|~3.0|~4.0
Requires (Dev)
- phpspec/phpspec: ~2.1
README
Bard is the simplest PHP Sitemap package, just add some URLs and you are ready to go.
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