2017 © Pedro Peláez
 

library sitemaps

Library for generating sitemaps

image

robier/sitemaps

Library for generating sitemaps

  • Monday, November 13, 2017
  • by robier
  • Repository
  • 1 Watchers
  • 0 Stars
  • 82 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 49 % Grown

The README.md

Sitemaps

PHP implementation of sitemaps.org protocol. This library was build using PHP Generators having in mind using as less memory as possible., (*1)

Supporting sitemap formats:, (*2)

  • XML sitemaps
  • Text sitemaps

Library is also supporting GZip compression of generated sitemaps., (*3)

Usage


use Robier\Sitemaps\DataProvider; class Data implements DataProvider { public function fetch(): \Iterator { for($i = 1; $i <= 500000; $i++){ yield new Location('http://example.com/site-' . $i); } } }

use Robier\Sitemaps\Driver\XML; use Robier\Sitemaps\Generator; use Robier\Sitemaps\Processor\GZip; $writer = new XML('/tmp/', 'http://example.com/'); $generator = new Generator($writer); $generator->data('sitemap', new Data()); // gzip enable $generator->processor(new GZip()); foreach($generator as $item){ // // $item is instance of File/Contract }

Installation

composer require robier/sitemaps

Docker

For development you can use docker:, (*4)

tests/docker/build
tests/docker/run <command that will be send to docker contener>
tests/docker/enter
tests/docker/run xdebug <php script>

Todo

  • Implement Atom/RSS format
  • write tests
  • add better documentation

The Versions

13/11 2017

dev-master

9999999-dev https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

13/11 2017

v0.3.5

0.3.5.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

13/11 2017

v0.3.4

0.3.4.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

13/11 2017

v0.3.3

0.3.3.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

23/10 2017

v0.3.2

0.3.2.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

22/10 2017

v0.3.1

0.3.1.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

21/10 2017

v0.3

0.3.0.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

19/10 2017

v0.2

0.2.0.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar

13/10 2017

v0.1

0.1.0.0 https://github.com/robier/sitemaps

Library for generating sitemaps

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

by Robert Premar