2017 © Pedro Peláez
 

library jackalope-fs

Jackalope Transport library using the filesystem

image

jackalope/jackalope-fs

Jackalope Transport library using the filesystem

  • PHP
  • 6 Dependents
  • 0 Suggesters
  • 2 Forks
  • 9 Open issues
  • 5 Versions
  • 1 % Grown

The README.md

Jackalope Filesystem PHPCR implementation

Test application, (*1)

This is a WIP implementation to support a filesystem implementation of PHPCR., (*2)

Connecting

Connect as follows:, (*3)

$factory = new RepositoryFactoryFilesystem();
$repository = $factory->getRepository(array(
    'path' => '/home/mystuff/somefolder',
));
$credentials = new SimpleCredentials('admin', 'admin');
$session = $repository->login($credentials);

Options:, (*4)

  • path: (required) Path to store data, indexes, etc.
  • search_enabled: If search should be enabled or not (default true)

Limitations

Node copy

  • References not updated within copied subtree (this test is missing from PHPCR-API tests)

Querying

ZendSearch Lucene (native PHP)

Not supported:, (*5)

  • Node type inheritance: Currently node type inheritance is not taken into account - this should be fixed ASAP
  • Joins: Will need to be implemented in a post processor
  • LOWERCASE, UPPERCASE, LENGTH operands: Same as above
  • SQL and XPath query langauges: Will probably never be implemented
  • Full text search: Easy to implement if we add an additional search index

File handling

  • Files (binary data in the repository) are not current handled in a memory efficient manner. This will be addressed.

Testing

The default ZendSearch implementation doesn't behave very well when the full test suite is being run - it will tend to become corrupt after a certain number of operations. It is therefore necessary to batch the tests., (*6)

The Versions

16/11 2014