PHPackages                             gmoigneu/laravel-jackrabbit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. gmoigneu/laravel-jackrabbit

ActiveLibrary[Database &amp; ORM](/categories/database)

gmoigneu/laravel-jackrabbit
===========================

Laravel 5.x package providing Jackrabbit backend capabilities with Doctrine-PHPCR-ODM mappings

10PHP

Since Nov 8Pushed 10y ago1 watchersCompare

[ Source](https://github.com/gmoigneu/laravel-jackrabbit)[ Packagist](https://packagist.org/packages/gmoigneu/laravel-jackrabbit)[ RSS](/packages/gmoigneu-laravel-jackrabbit/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel 5.x package providing Jackrabbit backend capabilities with Doctrine-PHPCR-ODM mappings.

Prerequisites
-------------

[](#prerequisites)

- Apache Sling **7** or Apache Jackrabbit 2.3.6+

**[Jackalope](https://github.com/jackalope/jackalope-jackrabbit/) is currently not working with Jackrabbit Oak and thus not in Apache Sling 8**

Download Sling Launchpad 7 on [Maven repository](http://repo2.maven.org/maven2/org/apache/sling/org.apache.sling.launchpad/7/).

More info on :

-
- [jackalope/jackalope-jackrabbit#98 (comment)](https://github.com/jackalope/jackalope-jackrabbit/issues/98#issuecomment-154832686)

Installation
------------

[](#installation)

```
composer require gmoigneu/laravel-jackrabbit

```

Configuration
-------------

[](#configuration)

Publish the config file &amp; edit it with your Jackrabbit details:

```
php artisan vendor:publish

```

Usage
-----

[](#usage)

### JCR Session

[](#jcr-session)

```
// Init session
$session = \App::make('phpcr.session');

// Save a new testNode
$rootNode = $session->getNode("/");
$testNode = $rootNode->addNode("testNode");
$session->save();

// Get the newly created node
$testNode = $session->getNode("/testNode");
dd($testNode);
```

Document Manager
----------------

[](#document-manager)

Create a new model :

```
