Download the PHP package pantheon-systems/example-drupal7-circle-composer without Composer

On this page you can find all versions of the php package pantheon-systems/example-drupal7-circle-composer. 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 example-drupal7-circle-composer

About

This project template will create a Drupal 7 site that is managed by Composer and is tested on every commit on Circle CI using Behat, with the Drupal site either running on Pantheon or the Circle server. Only a few quick steps are required to set up either an entirely new site, or convert an existing site.

Adding new tests to your project will also be very easy; just follow the example of the included tests.

Getting Started

Before you begin, you should first install composer.

Once you have Composer on your system, create a new project:

If you already have a Drupal 7 site running on Pantheon, you should use the same name for your project as you used for your Pantheon site. If you are starting fresh, and would like to test on Pantheon, you should sign up for a free Agency account if you have not already done so.

Testing

There are four ways to test:

Testing Locally

Running all tests with both Behat and the Drupal site running on the local system, all you need to do is run the local-test script:

If you would like to run Behat on the local system, and test your Drupal site running on Pantheon, log on with Terminus, and then run the pantheon-test script:

This will probably just work, but if it does not, see the Customization section below; you may need to set up your database credentials.

Testing on Circle CI

Set up your project to be tested by Circle CI:

The provided circle.yml file is set up to first do a brief smoke-test on the Circle server, and, if it passes, it will then copy the site up to Pantheon, and run the rest of the Behat tests against the Drupal site running on Pantheon. The Behat configuration files should be set up correctly to run the basic tests in this way. See the Customization section below for information on how to add more tests, or change the way it behaves (e.g. to test only on Circle).

In order to have the tests run correctly on Circle, it is necessary to to define some "secret" environment variable values so that the Circle server can authenticate with Terminus. The necessary variables are shown in the table below:

Variable Name Value
PEMAIL The email used to log in to a Pantheon User with access to the site
PPASS The password for the acount specified by PEMAIL
GITHUB_OAUTH_TOKEN Authorization token to increase rate limit (RECOMMENDED)

Edit these in Project Settings > Environment Variables (https://circleci.com/gh/ORG/PROJECT/edit#env-vars). Once you set the values here, Circle CI will keep them secret, so other parties will not be able to see what they are, even if they log in to the Circle CI website.

n.b. These values can be exposed if code is committed to the repository that displays them; for this reason, Circle does not pass these values in for pull requests submitted from external sources. Therefore, the Pantheon tests will not run for these kinds of PRs.

You also need to set up an ssh key, so that the push-to-pantheon script can commit changes to the Pantheon git repository.

See the Circle CI documentation for more information on configuration.

Customization

Once you have created a new project, you will still need to do some customization steps to suit your particular needs. The create-project scripts do the best job they can to customize your new project, so it should run right out of the box. The various customization options are very useful for adding in any additional items needed for your particular site.

The folders behat and scripts are copied into your project, and may be freely modified and then checked in to your github repository. Any location listed in the provided .gitignore file is managed by Composer, and should not be modified or committed.

Environment Variables

There are three places to define environment variables.

See the comments in default-environment for descriptions of the different variables that can be set. Instructions for setting sensitive values in Circle CI are described above in the section "Testing on Circle CI".

Adding Modules to the Site

Additional modules may be added using Composer:

This will put the specified module in sites/all/modules/contrib, and will also update your composer.json file with the information on the module that was just added.

If you have an existing site with existing modules, use the composer-generate Drush command to generate a composer.json file from the existing site. Copy the modules from the require section of the generated file, and ignore the other parts of this file.

Custom Modules

You may place your custom modules and themes in drupal/sites/all/modules/custom and drupal/sites/all/themes/custom, respectively, and commit them to the same repository that contains your composer.json file.

If you prefer, you may instead create a Composer project for your custom components, and add them to your composer.json file. It is not necessary to make your code publicly accessible in order to do this; it is possible to create a local composer package definition that points to a private GitHub repository. See Creating your very own Composer Package for details on different ways to create composer packages.

Post Installation

The ctools export bonus.

Adding More Tests

The folder 'scripts' contain some starting scripts that you may use to customize the environment you need for your tests. See the README file in the Behat directory for details on where to put your tests, and how to configure behat-pantheon.yml for the Pantheon tests.


All versions of example-drupal7-circle-composer with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.0.21
derhasi/composer-preserve-paths Version 0.1.*
cweagans/composer-patches Version ~1.0
pantheon-systems/drops-7 Version 7.*
drush/drush Version 8.*
drupal/composer_vendor Version 7.1.*
drupal/admin_menu Version 7.3.*
drupal/devel Version 7.1.*
drupal/responsive_bartik Version 7.1.*
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 pantheon-systems/example-drupal7-circle-composer contains the following files

Loading the files please wait ....