Download the PHP package drunomics/contentpool-client without Composer

On this page you can find all versions of the php package drunomics/contentpool-client. 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 contentpool-client

Contentpool client module

The contentpool distribution combines the publishing features of the Thunder distribution with powerful content API & replication features! https://www.drupal.org/project/contentpool

Build Status

Status

The distribution proved itself very valuable, but it turned out that replication via multiversion is too complex for our use-case - so we switched to a simpler approach.

If you like to continue maintaining the distribution, please get in touch!

Overview

This repository is a Drupal client module that can connect to a contentpool server. You'll need a drupal project for installing it. Refer to "Installation" for details.

Installation

Quick installation

Please refer to the quick installation instructions of the distribution at https://github.com/drunomics/contentpool#quick-installation.

Regular installation

Automated configuration

Just run the provided drush command and provide it with the contentpool URL. Be sure to provide correct authentication credentials of the replicator user and to append the path /relaxed to your contentpool's base URL:

drush cps http://replicator:[email protected]/relaxed

The drush command will check the connection to the contentpool and output errors if there are connection issues.

Manual configuration

That's it!

Vue.js

For the contentpool filter selection, there is a dependency on Vue 2.5.17 or later. Vue.js is loaded automatically via the pre-configured library of the vuejs module.

Usage

The module configures all dependencies needed to replicate content from the contentpool. That is, the necessary data model and the modules needed for the replication. See http://www.drupaldeploy.org/ for more info about this modules.

The client can pull data automatically on a regular basis, or one can initiate the data replication process manually. Finally, the client provides an API endpoint which allows the contentpool to initiate an update instantly after changes occurred.

Pull data via the drush command

Just run the following command (requires Drush 9):

drush cppull

Pull data via the UI

Automatic updates

The contentpool client can be configured to update content from configured contentpool remote servers. The following options are possible:

Automatic pulls via Drupal's cron

In the configuration for a remote a pull interval can be specified. On a cron run the interval will be checked and a pull scheduled if necessary. The pull will run automatically at the end of cron execution, when Drupal processes the workspace replication queue.

Automatic pulls via a manual cron entry

The update can be triggered manually using the command. It will pull from all remote servers that are marked as a Contentpool.

For example:

drush cppull

Provided drush commands

# Pull content from contentpool:
drush cppull

# Show last replication status:
drush cpst

# Unblock replication status:
drush cpun

# Check whether somethings needs to be pulled:
drush contentpool-client:check

# Reset replication history, i.e. re-replicate everything:
drush cpr

# Remove conflicting revisions:
drush contentpool-client:remove-conflicts

Troubleshooting

When there are replication problems, be sure to:

Development

Via the provided development setup

For development purposes one can use the provided docker-compose setup. This is exactly the same setup as it's used by automated tests.

First, ensure do you do not use docker-composer version 1.21, as it contains this regression: https://github.com/docker/compose/issues/5874

  docker-compose --version

If so, update to version 1.22 which is known to work. See https://github.com/docker/compose/releases/tag/1.22.0

   ./scripts/create-project.sh
   ./scripts/run-server.sh
   ./scripts/init-project.sh
   # Optionally, launch a pool instance.
   ./scripts/launch-contentpool.sh

On a custom site

Just follow the above installation instructions and edit the module content at web/modules/contrib/contentpool-client. You can make sure it's a Git checkout by doing:

  rm -rf web/modules/contrib/contentpool-client
  composer install --prefer-source

Running tests

Locally, via provided scripts

After installation with the provided scripts (see above) you can just launch the tests as the following:

 ./scripts/create-project.sh
 ./scripts/run-server.sh
 ./scripts/init-project.sh
 ./scripts/launch-contentpool.sh
 ./scripts/run-tests.sh

Manually

Based upon the manual installation instructions you can launch tests with the following helper script:

./web/modules/contrib/contentpool-client/tests/behat/run.sh

You might have to set some environment variables for it to work. It needs a running a chrome with remote debugging enabled. Set the CHROME_URL variable.

Credits


All versions of contentpool-client with dependencies

PHP Build Version
Package Version
Requires cweagans/composer-patches Version ~1.0
drunomics/contentpool_data_model Version ^2.0
drunomics/contentpool_replication Version ^2.0
drunomics/service-utils Version *
drupal/entity_edit_redirect Version ^1.5
drupal/relaxed Version ^1.0@beta
drupal/replication Version ^1.0@beta
drupal/scheduler Version *
drupal/vuejs Version ^1.0@beta
drupal/workspace Version ^1.0@beta
drupal/uuid_url 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 drunomics/contentpool-client contains the following files

Loading the files please wait ....