Download the PHP package leuchtdiode/pimcore-rest-api-zf3 without Composer

On this page you can find all versions of the php package leuchtdiode/pimcore-rest-api-zf3. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package pimcore-rest-api-zf3

pimcore (REST API) module for Zend Framework 3

Zend Framework 3 module for accessing pimcore via its REST API.

Installation

Installation of this module uses composer. For composer documentation, please refer to getcomposer.org.

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

Usage

Currently there are the following features included:

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:

For example:

Services

We are suggesting not to use the API directly, but the services the module is providing through service locator. At the moment there is only a document service included.

You can use PimcoreRestApi\Service\Documents from service locator for retrieving documents:

View helpers

The module is also providing a view helper for displaying freetext of a given document path.

PraDocument

By calling $this->praDocument() in your view you can get an instance of the document view helper which provides the following methods at the moment:

Print text for path

$this->praDocument()->printTextForPath($path)

This method tries to fetch a document by its path, searching for all of its WYSIWYG elements, concatenates them and outputs the text. null gets returned if there was a problem fetching the document or finding WYSIWYG elements.

Caching

To minimize the API calls to the external pimcore system via its REST API we are suggesting setting up a storage cache provided by zend-cache.

The module has already implemented caching. You only have to tell him.

Setting up is as simple as defining a factory in service locator which is returning a Zend\Cache\Storage\StorageInterface for key PimcoreRestApi\StorageCache,

Synchronize contents to local system

You can use PimcoreRestApi\Service\ConfigSynchronizing to synchronize specific CMS paths to your local system. There can be several strategies where the content is being synchronized too. The method synchronize($rootPath) loads the strategy from the config and executes the synchronization. $rootPath is the root path in the CMS you want to synchronize with all its children.

For now, there is only the FileSystemStrategy. You have to specify in your config file which strategy you want to use. Use the array key synchronizing.

FileSystem

Here is an example config for the FileSystem strategy.


All versions of pimcore-rest-api-zf3 with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
zendframework/zend-http Version ~2.5
netresearch/jsonmapper Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package leuchtdiode/pimcore-rest-api-zf3 contains the following files

Loading the files please wait ....