PHPackages                             leuchtdiode/laminas-pimcore-rest-api - 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. [API Development](/categories/api)
4. /
5. leuchtdiode/laminas-pimcore-rest-api

AbandonedArchivedLibrary[API Development](/categories/api)

leuchtdiode/laminas-pimcore-rest-api
====================================

Laminas module for accessing pimcore via its REST API

0.2.0(3y ago)056MITPHPPHP &gt;=7.1

Since Mar 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/leuchtdiode/laminas-pimcore-rest-api)[ Packagist](https://packagist.org/packages/leuchtdiode/laminas-pimcore-rest-api)[ Docs](https://github.com/leuchtdiode/pimcore-rest-api-zf3)[ RSS](/packages/leuchtdiode-laminas-pimcore-rest-api/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (3)Used By (0)

pimcore (REST API) module for Laminas
=====================================

[](#pimcore-rest-api-module-for-laminas)

Laminas module for accessing [pimcore](https://github.com/pimcore/pimcore) via its REST API.

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

[](#installation)

Installation of this module uses composer. For composer documentation, please refer to [getcomposer.org](http://getcomposer.org/).

```
php composer.phar require leuchtdiode/pimcore-rest-api
```

Then add `PimcoreRestApi` to your `config/application.config.php`.

Usage
-----

[](#usage)

Currently there are the following features included:

- Retrieve document by ID
- Retrieve document by its path
- Search documents
- A view helper to print freetext of a document

### Set up

[](#set-up)

In order to use the API, you have to specify a config set `pimcoreRestApi` somewhere in your application (e.g. `config/autoload/local.php`)

You have to set the following parameters:

- `host`: The host where your pimcore API resides (e.g. cms.company.com)
- `ssl`: Defaults to false. Setting it to true will request API through SSL. (e.g. )
- `apiKey`: The API-Key you generated in pimcore for your user

For example:

```
