Skip to content

PHPCR API Silex Provider provides a REST access to marmelab/phpcr-api

Notifications You must be signed in to change notification settings

20minutes/phpcr-api-silex-provider

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPCR API Silex Provider Build Status

PHPCR API Silex Provider provides a REST access to marmelab/phpcr-api.

Installation

The recommended way to install phpcr-api is through Composer. Just create a composer.json file and run the composer install command to install it:

{
    "require": {
        "marmelab/phpcr-api-silex-provider": "dev-master"
    }
}

Utilisation

$repositoriesConfig = array(
    'Repository Test' => array(
        'factory' => jackalope.jackrabbit,
        'parameters' => array(
            'jackalope.jackrabbit_uri' => 'http://localhost:8080/server',
            'credentials.username' => 'admin',
            'credentials.password' => 'admin'
        )
    ),
    'Repository Test2' => array(
        'factory' => 'jackalope.doctrine-dbal',
        'parameters' => array(
            'doctrine_dbal.config' => array(
                'driver' => 'pdo_sqlite',
                'path' => '../src/app.db',
            ),
            'credentials.username' => 'admin',
            'credentials.password' => 'admin'
        )
    )
);

$app->register(new \PHPCRAPI\Silex\ApiServiceProvider(),array(
    'phpcr_api.repositories_config' =>  $repositoriesConfig,
    'phpcr_api.mount_prefix'    =>  '/api'
));

License

This application is available under the MIT License, courtesy of marmelab.

About

PHPCR API Silex Provider provides a REST access to marmelab/phpcr-api

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%