2017 © Pedro Peláez
 

library sitemap-plus

Sitemap generator for Laravel. Includes sitemap extensions

image

kalley/sitemap-plus

Sitemap generator for Laravel. Includes sitemap extensions

  • Friday, September 19, 2014
  • by kalley
  • Repository
  • 1 Watchers
  • 0 Stars
  • 245 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Sitemap - plus extensions

This package builds XML and text sitemaps. Sitemap indexes are still in the works, but are currently not implemented., (*1)

Package Installation

Add the following line to your composer.json file:, (*2)

"kalley/sitemap-plus": "dev-master"

or run composer require kalley/sitemap-plus:dev-master from the command line, (*3)

Add this line of code to the providers array located in your app/config/app.php file:, (*4)

'Kalley\SitemapPlus\SitemapPlusServiceProvider',

Configuration

coming soon..., (*5)

Example

Route::get('sitemap{ext?}', function($ext = '.xml') {
  return App::make('sitemap-plus')
    ->addUrl(URL::to('/'), '2014-09-09', null, '1.0', function($url) {
      $url->isMobile(true)
        ->addVideo('http://thumbnail', 'Sample video', '', null, 'http://playerloc', function($video) {
          $video->family_friendly = 'yes';
          $video->addPrice('20.00', 'USD')
            ->addPrice('25.00', 'EUR', function($price) {
              $price->resolution = 'HD';
            });
        })
        ->addImage('http://location');
    })
    ->addUrl(URL::to('about'))
    ->render($ext);
})
  ->where(['ext' => '\.(txt|xml)']);

For full API, see the wiki, (*6)

Support

Bugs and feature request are tracked on GitHub, (*7)

License

This package is released under the MIT License., (*8)

The Versions

19/09 2014

dev-master

9999999-dev

Sitemap generator for Laravel. Includes sitemap extensions

  Sources   Download

The Requires

 

by Avatar kalley