Download the PHP package acquia/cohesion without Composer

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

Acquia Site Studio

Build Status

Installation with composer

Using composer is the preferred way of managing your modules and themes as composer handles dependencies automatically and there is less margin for error. You can find out more about composer and how to install it here: https://getcomposer.org/. It is not recommended to edit your composer.json file manually.

Open up your terminal and navigate to your project root directory.

Run the following commands to require the module and minimal theme:

Site Studio will install along with several module dependencies from drupal.org.

You can now enable the modules via drush with the following commands:

Upgrading Site Studio

When upgrading to a newer version of Site Studio, the following series of commands will need to be run in this order:

Drush integration

The cohesion drush command has the following operations:

cohesion:rebuild

Re-save and run pending updates on all Site Studio config entities.

cohesion:import

Import assets and rebuild element styles (replacement for the CRON).

Hooks

Several hooks are provided and documented in ./cohesion.api.php.

All hooks are in the sitestudio group, so can be implemented in a MODULE.sitestudio.inc file under your module's root if you wish.

note: the previous dx8 group is also included for backwards compatibility.

Global $settings options

Show the JSON fields for debugging:

Allow the API URL field on the account settings page to be editable:

Expose a version number field on the account settings page (for development):

Don't show the API key field on the account settings page:

Don't show the Google API key page:

Set the temporary stream wrapper that cohesion should use:

Utilise the database as a scratch directory during rebuild operations:

Set the sync directory that Site studio should use:

Set the max number of entities to import via sync in the batch process:

Set the max number of entities to rebuild at one time in the rebuild batch process:

Global $config options

Set API key:

Set organization key:

Show legacy sync options in the UI:

Site Studio Events

When certain Site Studio operations are taking place events are dispatched so that you can interact with it, but you must write your own event subscribers to subscribe to the relevant events. The main Site Studio module's events can be found within the \Drupal\cohesion\SiteStudioEvents class.

Pre Site Studio Rebuild

When a Site Studio rebuild operation is started the PreRebuildEvent will be dispatched.

To subscribe: Drupal\cohesion\SiteStudioEvents::PRE_REBUILD

The dispatched event is Drupal\cohesion\Event\PreRebuildEvent.

Post Site Studio Rebuild

When a Site Studio rebuild operation is complete the PostRebuildEvent will be dispatched.

To subscribe: Drupal\cohesion\SiteStudioEvents::POST_REBUILD

The dispatched event is Drupal\cohesion\Event\PostRebuildEvent.

Tests

Run something like: vendor/bin/phpunit -c docroot/core/phpunit.xml.dist --testsuite=unit --group Cohesion

License

Copyright (C) 2024 Acquia, Inc.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.


All versions of cohesion with dependencies

PHP Build Version
Package Version
Requires ext-json Version *
cweagans/composer-patches Version ^1.7
drupal/entity_reference_revisions Version ^1.11
drupal/imce Version ^3.1
drupal/token Version ^1.14
drupal/jquery_ui Version ^1.7
drupal/stable Version ^2.0 || ^2.1
drush/drush Version ^11.6 || ^12 || ^13
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 acquia/cohesion contains the following files

Loading the files please wait ....