2017 © Pedro Peláez
 

library php-n2r

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

image

togos/php-n2r

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  • Wednesday, March 21, 2018
  • by TOGoS
  • Repository
  • 0 Watchers
  • 0 Stars
  • 9,476 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 28 Versions
  • 2 % Grown

The README.md

PHPN2R

Serves blobs identified by urn:sha1 and urn:bitprint URNs via the /uri-res/N2R?(URN) convention (see RFC 2169)., (*1)

Can be used as a library or by itself., (*2)

Installation as stand-alone script

  1. Check this project out to a directory under your document root called 'uri-res'.
  2. Copy config.php.example to config.php and edit it.
  3. That's it.

ext-lib contains classes from other libraries so that you don't need to ``composer install``` to use PHPN2R by itself., (*3)

Repository format

See ContentCouchRepositoryFormat., (*4)

The repositories listed in config.php are assumed to be of the following format, (*5)

  <repository directory>/
    data/
      <arbitrary sector name>/
        <first 2 letters of base32-encoded SHA-1>/
          <base32-encoded SHA-1 of file contents>

You can have any number of sectors, and their names are not important. They just act as buckets within which you can organize your data (e.g. you might put really important stuff in one, less important stuff somewhere else, data of questionable value in yet another)., (*6)

Use as a library

Explicitly not documented, because the API isn't so nice and I'm probably the only one in the world to whom it is useful, anyway., (*7)

TODO:

Look at http://pablotron.org/software/zipstream-php/ for making zips of directories, (*8)

The Versions

21/03 2018

dev-master

9999999-dev

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/03 2018

0.1.10

0.1.10.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

21/03 2018

0.1.9

0.1.9.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/01 2017

0.1.8

0.1.8.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/11 2016

0.1.7

0.1.7.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

09/11 2016

0.1.6

0.1.6.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/09 2016

0.1.5

0.1.5.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/03 2016

0.1.4

0.1.4.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

02/03 2016

dev-phrebarify-1

dev-phrebarify-1

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/12 2015

0.1.3

0.1.3.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2015

0.1.2

0.1.2.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2015

0.1.1

0.1.1.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

24/11 2015

0.1.0

0.1.0.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

30/07 2015

0.0.15

0.0.15.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2015

0.0.14

0.0.14.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

07/07 2015

0.0.13

0.0.13.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

26/06 2015

0.0.12

0.0.12.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

0.0.11

0.0.11.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

0.0.10

0.0.10.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

0.0.9

0.0.9.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

25/06 2015

0.0.8

0.0.8.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/04 2015

0.0.7

0.0.7.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

06/03 2015

0.0.6

0.0.6.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

12/01 2015

0.0.5

0.0.5.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

29/12 2014

0.0.4

0.0.4.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

MIT

The Requires

 

The Development Requires

22/12 2014

0.0.3

0.0.3.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

The Requires

 

The Development Requires

22/12 2014

0.0.2

0.0.2.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

The Requires

 

The Development Requires

10/09 2014

0.0.1

0.0.1.0

Library (and stand-alone scripts) for handling /uri-res/N2R requests backed by a ccouch repository.

  Sources   Download

The Requires