marmelab / phpcr-api-silex-provider
PHPCR API Silex Provider exposes in REST marmelab/phpcr-api
Installs: 1 900
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 13
Forks: 2
Open Issues: 0
Requires
- jms/serializer: ~0.16.0
- marmelab/phpcr-api: 2.0.*
- silex/silex: ~1.1
Requires (Dev)
- jackalope/jackalope-doctrine-dbal: 1.1.*
- jackalope/jackalope-jackrabbit: 1.1.*
- phpunit/phpunit: 4.1.3
- ptrofimov/xpmock: 1.1.5
- symfony/browser-kit: ~2.4
Suggests
- jackalope/jackalope-doctrine-dbal: To connect to a Doctrine DBAL content repository, 1.1.*
- jackalope/jackalope-jackrabbit: To connect to a Jackrabbit content repository, 1.1.*
README
Archived Repository This code is no longer maintained. Feel free to fork it, but use it at your own risks. |
PHPCR API Silex Provider
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.