2017 © Pedro Peláez
 

library large-array-writer

Large Array Writer (sample: sitemap writer)

image

satmaelstorm/large-array-writer

Large Array Writer (sample: sitemap writer)

  • Friday, June 8, 2018
  • by satmaelstorm
  • Repository
  • 0 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

LargeArrayWriter

It was originally created for recording SiteMap files with their limitations of 50 MB and 50,000 lines per 1 file. Later useful for recording all sorts of feeds., (*1)

Simple Version (1.0)

Usage

$writer = new LargeArrayWriter(
"sitemap_%NUM%.xml",
"/tmp/" ,
true,
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\n",
"</urlset>",
50000,
50 * 1000 * 1000,
1000
);

Add string to file:, (*2)

$writer->addString("<url><loc>URL</loc><lastmod>DATE</lastmod><changefreq>daily</changefreq></url>\n");

After all, finalize writer:, (*3)

$files = $writer->finalize();

Extended Version (2.0)

FileNumerator

Saver

LAWriter

The Versions

08/06 2018

dev-master

9999999-dev

Large Array Writer (sample: sitemap writer)

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Vladislav Sidorin

file sitemap large array huge array file writer

08/06 2018

2.0.a

2.0.0.0-alpha

Large Array Writer (sample: sitemap writer)

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Vladislav Sidorin

file sitemap large array huge array file writer

19/05 2018

1.02

1.02.0.0

Large Array Writer (sample: sitemap writer)

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Vladislav Sidorin

file sitemap large array huge array file writer

19/05 2018

1.01

1.01.0.0

Large Array Writer (sample: sitemap writer)

  Sources   Download

MIT

The Requires

  • php >=7.1.0

 

The Development Requires

by Vladislav Sidorin

file sitemap large array huge array file writer