Download the PHP package davidbarratt/drupal-structure without Composer

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

Drupal Structure

Giving Drupal 6 & 7 a Directory Sturcture like Drupal 8 via Composer

This script does the following tasks when Composer install and update is run:

  1. Creates the folders libraries, modules, themes, and sites in the root
  2. Copies core/sites/README.txt and core/sites/example.sites.php to sites
  3. Copies core/sites/default/default.settings.php to sites/default/default.settings.php
  4. Removes each folder in core/sites that is present in sites
  5. Creates a symbolic link for each site from core/sites to sites
  6. Copies core/sites/all/modules/README.txt to modules/README.txt
  7. Copies core/sites/all/themes/README.txt to themes/README.txt
  8. Create symbolic link from core/sites/all/modules to modules
  9. Create symbolic link from core/sites/all/themes to themes
  10. Create symbolic link from core/sites/all/libraries to libraries
  11. Create sites/sites.php if the file doesn’t already exist
  12. Create symbolic link from core/sites/sites.php to sites/sites.php

Installation

Require this library in your composer.json file

Add the scripts

Configuration

By default, the script assumes that Drupal core is located in the core directory and the resources (modules, themes, etc.) are located in the same directory as your composer.json file.

However, if you’d like to customize this, you can simply add the parameters in the extra. Here are the defaults (which are not necessary to add):

Usage

You can use this script by simply executing composer install or composer update. Composer will execute the script when the process is finished.

Example

Here is a more practical example of how you might use this script in a real composer.json file. This setup assumes that the web root is core. However, you could copy index.php and .htaccess and alter them to fit your needs.

For a more complicated example, please see: https://github.com/davidbarratt/drupal7/blob/master/composer.json


All versions of drupal-structure with dependencies

PHP Build Version
Package Version
Requires symfony/filesystem Version ~2.0
symfony/finder Version ~2.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 davidbarratt/drupal-structure contains the following files

Loading the files please wait ....